content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
testlist <- list(x = c(-692781312L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609961625-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
479
r
testlist <- list(x = c(-692781312L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
x<-mean(c(372889698, 143797361,671828181,373809554)) y<-mean(c(602487792,16412868,15030736,15901403) ) x y x-y x<- mean(c(9459, 11492,49514,9484)) y<-mean(c(10356,10256, 8417,12081)) x y x-y x<-mean(c(0.014486573,0.007287606,0.024476034, 0.014344770)) y<- mean(c(0.021872540,0.002893806,0.002676134,0.002677902...
/FHPC_ASSIGNMENT_3/FHPC_ASSIGNMENT_2/graphs/R files/measures_for_activity.R
no_license
nicdom23/FHPC_2019-2020
R
false
false
678
r
x<-mean(c(372889698, 143797361,671828181,373809554)) y<-mean(c(602487792,16412868,15030736,15901403) ) x y x-y x<- mean(c(9459, 11492,49514,9484)) y<-mean(c(10356,10256, 8417,12081)) x y x-y x<-mean(c(0.014486573,0.007287606,0.024476034, 0.014344770)) y<- mean(c(0.021872540,0.002893806,0.002676134,0.002677902...
##################################################### ##################################################### ## ## Roll dice demo ## ## ##################################################### ##################################################### #install.packages("TeachingDemos") # Note if you choose > 10 as the number o...
/samples/features/sql-big-data-cluster/app-deploy/RollDice/roll-dice.R
permissive
ik-dotnet/sql-server-samples
R
false
false
893
r
##################################################### ##################################################### ## ## Roll dice demo ## ## ##################################################### ##################################################### #install.packages("TeachingDemos") # Note if you choose > 10 as the number o...
rm(list=ls()) wd<-getwd() setwd(wd) event<-read.csv("event.csv") event<-na.omit(event) newdata <- event[which(event$ebt_snap=='1'),] event1<-aggregate(newdata[, 2:4], list(newdata$hhnum), sum) names(event1)[1]<-"hhnum" # Household data set hh<-read.csv("household.csv") hh<-na.omit(hh) hh1 <- hh[ which(hh$snapno...
/final.R
no_license
dhakalck/INFO-800-PROJECT
R
false
false
7,265
r
rm(list=ls()) wd<-getwd() setwd(wd) event<-read.csv("event.csv") event<-na.omit(event) newdata <- event[which(event$ebt_snap=='1'),] event1<-aggregate(newdata[, 2:4], list(newdata$hhnum), sum) names(event1)[1]<-"hhnum" # Household data set hh<-read.csv("household.csv") hh<-na.omit(hh) hh1 <- hh[ which(hh$snapno...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{wageprc} \alias{wageprc} \title{wageprc} \format{ A data frame with 286 observations. \describe{ \item{year}{1964 to 1987} \item{month}{1 to 12} \item{price}{consumer price index} \item{wage}{nominal hourly wage} }...
/man/wageprc.Rd
permissive
jcpernias/ec1027
R
false
true
857
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{wageprc} \alias{wageprc} \title{wageprc} \format{ A data frame with 286 observations. \describe{ \item{year}{1964 to 1987} \item{month}{1 to 12} \item{price}{consumer price index} \item{wage}{nominal hourly wage} }...
/PRUEBAS.R
no_license
abeldeandres/TFM-BigData
R
false
false
4,880
r
## Script for generating Plot 4 of assignment 1 - Coursera exploratory data analysis #Import data - two options offered in this script: sqldf or read.delim #require(sqldf) #HHElect <- read.csv.sql("household_power_consumption.txt", sql = 'SELECT * FROM file where #Date IN ("1/2/2007","2/2/2007")', sep=";") #HHElect[H...
/SubmitScripts/Plot4.R
no_license
SFrav/ExData_Plotting1
R
false
false
1,469
r
## Script for generating Plot 4 of assignment 1 - Coursera exploratory data analysis #Import data - two options offered in this script: sqldf or read.delim #require(sqldf) #HHElect <- read.csv.sql("household_power_consumption.txt", sql = 'SELECT * FROM file where #Date IN ("1/2/2007","2/2/2007")', sep=";") #HHElect[H...
context("regr_blackboost") test_that("regr_blackboost", { requirePackagesOrSkip(c("mboost","party"), default.method = "load") parset.list1 = list( list(family=mboost::GaussReg(), tree_controls=party::ctree_control(maxdepth=2)), list(family=mboost::GaussReg(), tree_controls=party::ctree_control(maxdepth=4)...
/tests/testthat/test_regr_blackboost.R
no_license
jimhester/mlr
R
false
false
982
r
context("regr_blackboost") test_that("regr_blackboost", { requirePackagesOrSkip(c("mboost","party"), default.method = "load") parset.list1 = list( list(family=mboost::GaussReg(), tree_controls=party::ctree_control(maxdepth=2)), list(family=mboost::GaussReg(), tree_controls=party::ctree_control(maxdepth=4)...
Bom Dia meu arquivo
/AdrianoW.R
no_license
AdrianoW/dsrtest
R
false
false
21
r
Bom Dia meu arquivo
if (!require("plyr")) { install.packages("plyr", dependencies = TRUE) library(plyr) } dirname='.' setwd(dirname)#Set the directory where the clinical data is located for each cancer in separate folder filenames<-system("ls */nationwidechildrens.org_clinical_patient*", intern=T) ##Identifying only unique col...
/Codes/ProcessClinicalData.R
permissive
mumtahena/TCGA_RNASeq_Clinical
R
false
false
2,201
r
if (!require("plyr")) { install.packages("plyr", dependencies = TRUE) library(plyr) } dirname='.' setwd(dirname)#Set the directory where the clinical data is located for each cancer in separate folder filenames<-system("ls */nationwidechildrens.org_clinical_patient*", intern=T) ##Identifying only unique col...
library(dplyr) library(reshape2) # First of all, the names of the measurements are assigned to a variable called # "features". Those will be the variable names of the data set. features <- readLines ("features.txt") # Read the files with the subject's ID numbers and the group they belong # to - training group in t...
/run_analysis.R
no_license
BarLobato/Getting-Cleaning-Data-Course-Project
R
false
false
6,349
r
library(dplyr) library(reshape2) # First of all, the names of the measurements are assigned to a variable called # "features". Those will be the variable names of the data set. features <- readLines ("features.txt") # Read the files with the subject's ID numbers and the group they belong # to - training group in t...
con <- file("https://github.com/junyitt/ds10_capstone/raw/master/nlist1.Rdata") load(con, envir = .GlobalEnv) close(con) testnlist <- prep_nlist(testsdf, k = 3) words.v <- as.data.frame(testnlist[[3]])[,"pre"] set.seed(124) sample1 <- sample(1:length(words.v), size = 1000) testpredict <- lapply(words.v[sample1], F...
/4_predictiveperformance.R
no_license
junyitt/ds10_capstone
R
false
false
899
r
con <- file("https://github.com/junyitt/ds10_capstone/raw/master/nlist1.Rdata") load(con, envir = .GlobalEnv) close(con) testnlist <- prep_nlist(testsdf, k = 3) words.v <- as.data.frame(testnlist[[3]])[,"pre"] set.seed(124) sample1 <- sample(1:length(words.v), size = 1000) testpredict <- lapply(words.v[sample1], F...
library(XML) library(digest) library(tibble) library(httr) library(rvest) library(stringr) library(dplyr) library(tidyverse) ##### #링크 link = '//*[@id="content"]/section[2]/div/div[1]/section/section/div' url = "https://www.reuters.com/news/archive/businessnews?view=page&page=1&pageSize=10" %>% read...
/R/reueter.R
no_license
suime/Crawling
R
false
false
4,165
r
library(XML) library(digest) library(tibble) library(httr) library(rvest) library(stringr) library(dplyr) library(tidyverse) ##### #링크 link = '//*[@id="content"]/section[2]/div/div[1]/section/section/div' url = "https://www.reuters.com/news/archive/businessnews?view=page&page=1&pageSize=10" %>% read...
options(shiny.maxRequestSize=30*1024^2) library(shiny) library(leaflet) library(dplyr) # Define server that analyzes the patterns of crimes in DC shinyServer(function(input, output,session) { # Create an output variable for problem description output$text <- renderText({ "This project uses the dataset...
/server.R
no_license
SHENSun0610/R-project-
R
false
false
3,271
r
options(shiny.maxRequestSize=30*1024^2) library(shiny) library(leaflet) library(dplyr) # Define server that analyzes the patterns of crimes in DC shinyServer(function(input, output,session) { # Create an output variable for problem description output$text <- renderText({ "This project uses the dataset...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{nytcovstate} \alias{nytcovstate} \title{NYT COVID-19 data for the US states, current as of Friday, May 15, 2020} \format{ A tibble with 3,974 rows and 5 columns \describe{ \item{date}{Date in YYYY-MM-DD format (dat...
/man/nytcovstate.Rd
permissive
AVCDRK/covdata
R
false
true
810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{nytcovstate} \alias{nytcovstate} \title{NYT COVID-19 data for the US states, current as of Friday, May 15, 2020} \format{ A tibble with 3,974 rows and 5 columns \describe{ \item{date}{Date in YYYY-MM-DD format (dat...
example.peerquiz = function() { setwd("D:/libraries/courserPeerquiz/peerquiz") set.pq.opts() pq = load.pq("p-value") pq = load.pq("Kap1_Software_1") responderid = "guest" adf = pq.get.answers.df(pq=pq) ans = select.guess.choices(adf, responderid = responderid) pgu = set.pgu(new.pgu(pq=pq, ans=ans,resp...
/R/pq_guess.R
no_license
skranz/courserPeerquiz
R
false
false
8,001
r
example.peerquiz = function() { setwd("D:/libraries/courserPeerquiz/peerquiz") set.pq.opts() pq = load.pq("p-value") pq = load.pq("Kap1_Software_1") responderid = "guest" adf = pq.get.answers.df(pq=pq) ans = select.guess.choices(adf, responderid = responderid) pgu = set.pgu(new.pgu(pq=pq, ans=ans,resp...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 har_agg <- function(RM, periods, iNperiods) { .Call(`_highfrequency_har_agg`, RM, periods, iNperiods) } heavy_parameter_transformR_ <- function(parameters, K, p, q, O, A, B, pMax1, qMax1) ...
/R/RcppExports.R
no_license
junfanz1/highfrequency
R
false
false
1,472
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 har_agg <- function(RM, periods, iNperiods) { .Call(`_highfrequency_har_agg`, RM, periods, iNperiods) } heavy_parameter_transformR_ <- function(parameters, K, p, q, O, A, B, pMax1, qMax1) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SnB.R \name{SnB} \alias{SnB} \title{Cramer-von Mises statistic SnB for GOF based on the Rosenblatt transform} \usage{ SnB(E) } \arguments{ \item{E}{(n x d) matrix of pseudos-observations (normalized ranks)} } \value{ \item{Sn}{Cra...
/man/SnB.Rd
no_license
cran/HMMcopula
R
false
true
468
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SnB.R \name{SnB} \alias{SnB} \title{Cramer-von Mises statistic SnB for GOF based on the Rosenblatt transform} \usage{ SnB(E) } \arguments{ \item{E}{(n x d) matrix of pseudos-observations (normalized ranks)} } \value{ \item{Sn}{Cra...
#' #' #' A script to analyse genomic distance distribution of gene pairs that encode #' for proteins that have direct protein-protein interactinos (PPI). #' #' require(stringr) # for some string functionality require(biomaRt) # to retrieve human paralogs from Ensembl require(TxDb.Hsapiens.UCSC.hg19.kno...
/R/genomic_distance_of_PPI.R
no_license
ibn-salem/PPIgenomics
R
false
false
11,152
r
#' #' #' A script to analyse genomic distance distribution of gene pairs that encode #' for proteins that have direct protein-protein interactinos (PPI). #' #' require(stringr) # for some string functionality require(biomaRt) # to retrieve human paralogs from Ensembl require(TxDb.Hsapiens.UCSC.hg19.kno...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BIEN.R \name{BIEN_trait_family} \alias{BIEN_trait_family} \title{Download trait data for given families.} \usage{ BIEN_trait_family(family, all.taxonomy = FALSE, political.boundaries = FALSE, source.citation = F, ...) } \arguments{ \item{fa...
/BIEN/man/BIEN_trait_family.Rd
no_license
naturalis/RBIEN
R
false
true
1,442
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BIEN.R \name{BIEN_trait_family} \alias{BIEN_trait_family} \title{Download trait data for given families.} \usage{ BIEN_trait_family(family, all.taxonomy = FALSE, political.boundaries = FALSE, source.citation = F, ...) } \arguments{ \item{fa...
# # The data that is used for testing is the data from the sae package. # load("EBP/ebp_summary.RData") # load("FH/fh_summary.RData") # load("Direct/direct_summary.RData") # # # Test if return is a data.frame # test_that("Test that the summary output works as expected", { # # check ebp summary # expect_equal(summ...
/tests/testthat/test_S3_methods.R
no_license
SoerenPannier/emdi
R
false
false
833
r
# # The data that is used for testing is the data from the sae package. # load("EBP/ebp_summary.RData") # load("FH/fh_summary.RData") # load("Direct/direct_summary.RData") # # # Test if return is a data.frame # test_that("Test that the summary output works as expected", { # # check ebp summary # expect_equal(summ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rBuildReleaseTest-package.R \docType{package} \name{rBuildRelease} \alias{rBuildRelease} \title{Test R Build and Release} \description{ rBuildReleaseTest: provides a test case for automated CI/CD pipelines in R } \details{ This package severa...
/man/rBuildRelease.Rd
permissive
nik01010/rBuildReleaseTest
R
false
true
935
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rBuildReleaseTest-package.R \docType{package} \name{rBuildRelease} \alias{rBuildRelease} \title{Test R Build and Release} \description{ rBuildReleaseTest: provides a test case for automated CI/CD pipelines in R } \details{ This package severa...
## ############################################################################ ## ## DISCLAIMER: ## This script has been developed for research purposes only. ## The script is provided without any warranty of any kind, either express or ## implied. The entire risk arising out of the use or performance of the sample...
/EARS/EARSNB3x.R
no_license
FelipeJColon/AlgorithmComparison
R
false
false
86,668
r
## ############################################################################ ## ## DISCLAIMER: ## This script has been developed for research purposes only. ## The script is provided without any warranty of any kind, either express or ## implied. The entire risk arising out of the use or performance of the sample...
rcloud.out <- function(expr, terminate="\n") { expr <- substitute(expr) rval <- NULL file <- textConnection("rval", "w", local = TRUE) sink(file) on.exit({ sink(); close(file) }) v <- withVisible(eval(expr, parent.frame())) if (v$visible) print(v$value) on.exit() sink() self.oobSend(list("console.ou...
/rcloud.support/R/output.R
permissive
cscheid/rcloud
R
false
false
409
r
rcloud.out <- function(expr, terminate="\n") { expr <- substitute(expr) rval <- NULL file <- textConnection("rval", "w", local = TRUE) sink(file) on.exit({ sink(); close(file) }) v <- withVisible(eval(expr, parent.frame())) if (v$visible) print(v$value) on.exit() sink() self.oobSend(list("console.ou...
setwd("Documents/Project Team/Rossman") #Importing prediction csv from different models pred1 <- read_csv("xgb7.csv") pred2 <- read_csv("h2o_random_forest2.csv") pred2 <- read_csv("h2o_random_forest1.csv") pred2 <- read_csv("h2o_random_forest3.csv") #After few tries, decided with the following weights pred <- 0.8*pre...
/Ensembling.R
no_license
leotrj/Rossmann-Store-Challenge
R
false
false
490
r
setwd("Documents/Project Team/Rossman") #Importing prediction csv from different models pred1 <- read_csv("xgb7.csv") pred2 <- read_csv("h2o_random_forest2.csv") pred2 <- read_csv("h2o_random_forest1.csv") pred2 <- read_csv("h2o_random_forest3.csv") #After few tries, decided with the following weights pred <- 0.8*pre...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.R \name{dlGoogle} \alias{dlGoogle} \title{Download file from Google Drive} \usage{ dlGoogle( url, archive = NULL, targetFile = NULL, checkSums, messSkipDownload, destinationPath, type = NULL, overwrite, needChecksum...
/man/dlGoogle.Rd
no_license
PredictiveEcology/reproducible
R
false
true
2,793
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.R \name{dlGoogle} \alias{dlGoogle} \title{Download file from Google Drive} \usage{ dlGoogle( url, archive = NULL, targetFile = NULL, checkSums, messSkipDownload, destinationPath, type = NULL, overwrite, needChecksum...
## ## Problem 2 in Programming Assign ## best <- function(state, outcome) { ## Read outcome data outcomeData <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that state and outcome are valid ## state validity check if(!(state %...
/ProgrammingAssignment3/best.R
no_license
skdb2015/datasciencecoursera
R
false
false
2,440
r
## ## Problem 2 in Programming Assign ## best <- function(state, outcome) { ## Read outcome data outcomeData <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that state and outcome are valid ## state validity check if(!(state %...
library(tidyverse) library(stringdist) library(rvest) raw_stories_no_covid <- read_csv(here::here("data", "cumulative cash bail no covid story urls.csv"), col_types = cols( stories_id = col_double(), publish_date = col_datetime(format = "%m/%d...
/code/cash_bail_headlines.R
no_license
COVID19-DVRN/P_13a-Public-sentiment-toward-government-handling-of-COVID-19-and-treatment-of-the-incarcerated-
R
false
false
24,938
r
library(tidyverse) library(stringdist) library(rvest) raw_stories_no_covid <- read_csv(here::here("data", "cumulative cash bail no covid story urls.csv"), col_types = cols( stories_id = col_double(), publish_date = col_datetime(format = "%m/%d...
# sourced by drug_server.R ------------------------------------------------ fn_filter_drug <- function(.x, .cor = 0.2, .fdr = 0.05) { .x %>% dplyr::filter(abs(cor_sprm) > .cor, fdr < .fdr) } fn_filter_drug_ctrp <- function(.x, .cor = 0.2, .fdr = 0.05) { .x %>% dplyr::filter(abs(cor_sprm) > .cor, p_val < .fdr) } # ...
/functions/drug_analysis.R
permissive
COMODr/GSCALite
R
false
false
7,629
r
# sourced by drug_server.R ------------------------------------------------ fn_filter_drug <- function(.x, .cor = 0.2, .fdr = 0.05) { .x %>% dplyr::filter(abs(cor_sprm) > .cor, fdr < .fdr) } fn_filter_drug_ctrp <- function(.x, .cor = 0.2, .fdr = 0.05) { .x %>% dplyr::filter(abs(cor_sprm) > .cor, p_val < .fdr) } # ...
##' NCBI Database API - Get NCBI taxonomy information from given NCBI taxonomy IDs ##' ##' Get NCBI taxonomy information. ##' @title Get NCBI taxonomy information ##' @param NCBITaxoIDs A vector of NCBI taxonomy IDs. ##' @inheritParams getNCBIGenesInfo ##' @return A list containing taxonomy information for each ID. ##'...
/R/getNCBI.R
no_license
YulongNiu/NCBIAPI
R
false
false
13,149
r
##' NCBI Database API - Get NCBI taxonomy information from given NCBI taxonomy IDs ##' ##' Get NCBI taxonomy information. ##' @title Get NCBI taxonomy information ##' @param NCBITaxoIDs A vector of NCBI taxonomy IDs. ##' @inheritParams getNCBIGenesInfo ##' @return A list containing taxonomy information for each ID. ##'...
#' Get (individual) treatment effect draws from bartcFit posterior #' #' CTE = Conditional Treatment Effects (usually used to generate (C)ATE or ATT) #' \code{newdata} specifies the conditions, if unspecified it defaults to the original data. #' Assumes treated column is either a integer column of 1's (treated) and 0'...
/R/treatment-effects-bartCause.R
permissive
bonStats/tidytreatment
R
false
false
2,769
r
#' Get (individual) treatment effect draws from bartcFit posterior #' #' CTE = Conditional Treatment Effects (usually used to generate (C)ATE or ATT) #' \code{newdata} specifies the conditions, if unspecified it defaults to the original data. #' Assumes treated column is either a integer column of 1's (treated) and 0'...
library(arrow) library(rugarch) library(rmgarch) #unlink(pkgFile) path <- "C:/Users/Lazar/Desktop/Financial Volatility/Assignment/data.feather" data_full <- arrow::read_feather(path) data_full <- data.frame(data_full) data <- data_full[1:which(data_full$DT == '2019-10-31 17:00:00'),] data_val <- data_full[w...
/R_models_code.R
permissive
patricklucescu/financial_volatility
R
false
false
69,496
r
library(arrow) library(rugarch) library(rmgarch) #unlink(pkgFile) path <- "C:/Users/Lazar/Desktop/Financial Volatility/Assignment/data.feather" data_full <- arrow::read_feather(path) data_full <- data.frame(data_full) data <- data_full[1:which(data_full$DT == '2019-10-31 17:00:00'),] data_val <- data_full[w...
install.packages("e1071") library(e1071) getwd() b<-read.csv("bayes.csv") b str(b) class(b) testset<-data.frame(Age="<=30", Income="Medium", JobSatisfaction="No", Desire="Fair", Enrolls="") testset b<-rbind(b, testset) b traindata<-as.data.frame(b[1:14,]) testdata<-as.data.frame(b[15,]) traindata testdata bayesmodel<-n...
/LAB 9/dsr-prog_1.R
no_license
shiva807/1BM17CS096_DSR
R
false
false
451
r
install.packages("e1071") library(e1071) getwd() b<-read.csv("bayes.csv") b str(b) class(b) testset<-data.frame(Age="<=30", Income="Medium", JobSatisfaction="No", Desire="Fair", Enrolls="") testset b<-rbind(b, testset) b traindata<-as.data.frame(b[1:14,]) testdata<-as.data.frame(b[15,]) traindata testdata bayesmodel<-n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract.R \name{hourly_to_daily} \alias{hourly_to_daily} \title{Convert hourly to daily frequency} \usage{ hourly_to_daily(txt) } \arguments{ \item{txt}{String of the form 'every n hours'} } \value{ An equivalent string of the form 'x / day' ...
/man/hourly_to_daily.Rd
permissive
mhatrep/doseminer
R
false
true
372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract.R \name{hourly_to_daily} \alias{hourly_to_daily} \title{Convert hourly to daily frequency} \usage{ hourly_to_daily(txt) } \arguments{ \item{txt}{String of the form 'every n hours'} } \value{ An equivalent string of the form 'x / day' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enumeration_units.R \name{school_districts} \alias{school_districts} \title{Download a school district shapefile into R} \usage{ school_districts(state, type = "unified", cb = FALSE, year = NULL, ...) } \arguments{ \item{state}{The two-digit ...
/man/school_districts.Rd
no_license
kuriwaki/tigris
R
false
true
2,961
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enumeration_units.R \name{school_districts} \alias{school_districts} \title{Download a school district shapefile into R} \usage{ school_districts(state, type = "unified", cb = FALSE, year = NULL, ...) } \arguments{ \item{state}{The two-digit ...
% Generated by roxygen2 (4.1.0.9001): do not edit by hand % Please edit documentation in R/twoParamPlot.R \name{twoParamPlot} \alias{twoParamPlot} \title{Used to plot the ZOI and AUC results} \usage{ twoParamPlot(projectName, type, ZOI = "ZOI20", AUC = "fAUC20", ZOImin = 30, tolMax = 100, width = 6, height = 4, xlabe...
/man/twoParamPlot.Rd
no_license
yoavram/diskImageR
R
false
false
3,193
rd
% Generated by roxygen2 (4.1.0.9001): do not edit by hand % Please edit documentation in R/twoParamPlot.R \name{twoParamPlot} \alias{twoParamPlot} \title{Used to plot the ZOI and AUC results} \usage{ twoParamPlot(projectName, type, ZOI = "ZOI20", AUC = "fAUC20", ZOImin = 30, tolMax = 100, width = 6, height = 4, xlabe...
vcov.heckit5rob <- function(object, ...) { ret=list() ret$regime1=object$vcov1 ret$regime2=object$vcov2 return(ret) }
/R/vcov.heckit5rob.R
no_license
cran/ssmrob
R
false
false
134
r
vcov.heckit5rob <- function(object, ...) { ret=list() ret$regime1=object$vcov1 ret$regime2=object$vcov2 return(ret) }
library(argoFloats) options(warn=1) data(indexSynthetic) n <- 500 s <- subset(index, 1:n) p <- getProfiles(s) a <- readProfiles(p) cat("\n\n\n") cat("+--------------------------------------------------+\n") cat("| 1. Discover names of things in first netcdf file |\n") cat("+--------------------------------------------...
/sandbox/dek/09_adjust/09_adjust_05.R
no_license
chandra04/argoFloats
R
false
false
1,370
r
library(argoFloats) options(warn=1) data(indexSynthetic) n <- 500 s <- subset(index, 1:n) p <- getProfiles(s) a <- readProfiles(p) cat("\n\n\n") cat("+--------------------------------------------------+\n") cat("| 1. Discover names of things in first netcdf file |\n") cat("+--------------------------------------------...
library(devtools) library(data.table) #install.packages("dplyr") library(dplyr) #install.packages("tidyr") library(tidyr) #install.packages("tibble") library(tibble) #devtools::install_github("hadley/tidyverse") library(tidyverse) library(plyr) library(ggplot2) ## install_github("vqv/ggbiplot") library(ggbiplot) ###...
/rotina_pca_icn.R
no_license
fabiomourao/rotina_pca_icn
R
false
false
2,757
r
library(devtools) library(data.table) #install.packages("dplyr") library(dplyr) #install.packages("tidyr") library(tidyr) #install.packages("tibble") library(tibble) #devtools::install_github("hadley/tidyverse") library(tidyverse) library(plyr) library(ggplot2) ## install_github("vqv/ggbiplot") library(ggbiplot) ###...
source("db/src/db_connection.R") projects <- jsonlite::read_json("db/data/projects.json") con <- get_db_conn() for (i in 1:length(projects)) { # DROP (IF EXISTS) AND CREATE DB GROUP group <- projects[[i]]$project drop_group_sql <- paste0("DROP GROUP IF EXISTS ", group) DBI::dbGetQuery(con, drop_group_sql) c...
/db/src/create_db_groups.R
no_license
uva-bi-sdad/infrastructure
R
false
false
2,370
r
source("db/src/db_connection.R") projects <- jsonlite::read_json("db/data/projects.json") con <- get_db_conn() for (i in 1:length(projects)) { # DROP (IF EXISTS) AND CREATE DB GROUP group <- projects[[i]]$project drop_group_sql <- paste0("DROP GROUP IF EXISTS ", group) DBI::dbGetQuery(con, drop_group_sql) c...
#---------------------------------------------------------------------- # Purpose: This test exercises HDFS operations from R. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') #---------------------...
/h2o-r/tests/testdir_hdfs/runit_HDFS_basic.R
permissive
mrgloom/h2o-3
R
false
false
2,194
r
#---------------------------------------------------------------------- # Purpose: This test exercises HDFS operations from R. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') #---------------------...
# convert_small_to_large | convert_large_to_small | convert_down_across i01 <- plate_coords(plate_to = 1536, data_from = data.frame(y = 1:1536), data_format = "across") i02 <- plate_coords(plate_to = 1536, data_from = data.frame(y = 1:1536), ...
/tests/testthat/helper_convert_sl_ls_ad_da.R
permissive
sathishsrinivasank/pinerrordetector
R
false
false
3,442
r
# convert_small_to_large | convert_large_to_small | convert_down_across i01 <- plate_coords(plate_to = 1536, data_from = data.frame(y = 1:1536), data_format = "across") i02 <- plate_coords(plate_to = 1536, data_from = data.frame(y = 1:1536), ...
library(dplyr) library(ggplot2) library(sf) library(DT) library(plotly) library(leaflet) library(jsonlite) junco_vulcani <- st_read( "https://raw.githubusercontent.com/gf0604-procesamientodatosgeograficos/2021i-datos/main/gbif/junco_vulcani-cr-registros.csv", options = c( "X_POSSIBLE_NAMES=decimalLong...
/Tarea #3.R
no_license
AndresQF88/Tarea_3
R
false
false
4,778
r
library(dplyr) library(ggplot2) library(sf) library(DT) library(plotly) library(leaflet) library(jsonlite) junco_vulcani <- st_read( "https://raw.githubusercontent.com/gf0604-procesamientodatosgeograficos/2021i-datos/main/gbif/junco_vulcani-cr-registros.csv", options = c( "X_POSSIBLE_NAMES=decimalLong...
#' Calculate perceptual-distance between two (sets of) colors #' #' This returns the distance, according to the `method`, #' between corresponding hex-colors in `hex` and `hex_ref`. #' #' The vectors `hex` and `hex_ref` must be the same length. #' #' @param hex `character` vector of hex-colors #' @param hex_ref `charac...
/R/hex-distance.R
permissive
ijlyttle/paleval
R
false
false
2,619
r
#' Calculate perceptual-distance between two (sets of) colors #' #' This returns the distance, according to the `method`, #' between corresponding hex-colors in `hex` and `hex_ref`. #' #' The vectors `hex` and `hex_ref` must be the same length. #' #' @param hex `character` vector of hex-colors #' @param hex_ref `charac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/printCrudeAndAdjustedModel.R \name{printCrudeAndAdjustedModel} \alias{printCrudeAndAdjustedModel} \alias{rbind.printCrudeAndAdjusted} \alias{print.printCrudeAndAdjusted} \alias{htmlTable.printCrudeAndAdjusted} \alias{[.printCrudeAndAdjusted} ...
/man/printCrudeAndAdjustedModel.Rd
no_license
guhjy/Greg
R
false
true
13,246
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/printCrudeAndAdjustedModel.R \name{printCrudeAndAdjustedModel} \alias{printCrudeAndAdjustedModel} \alias{rbind.printCrudeAndAdjusted} \alias{print.printCrudeAndAdjusted} \alias{htmlTable.printCrudeAndAdjusted} \alias{[.printCrudeAndAdjusted} ...
getBatchtoolsNewRegFileDir = function() { fd = tempfile(pattern = "parallelMap_batchtools_reg_", tmpdir = getPMOptStorageDir()) options(parallelMap.bt.reg.filedir = fd) return(fd) } getBatchtoolsRegFileDir = function() { getOption("parallelMap.bt.reg.filedir") } getBatchtoolsReg = function() { an = inte...
/R/batchtools.R
no_license
imbs-hl/parallelMap
R
false
false
524
r
getBatchtoolsNewRegFileDir = function() { fd = tempfile(pattern = "parallelMap_batchtools_reg_", tmpdir = getPMOptStorageDir()) options(parallelMap.bt.reg.filedir = fd) return(fd) } getBatchtoolsRegFileDir = function() { getOption("parallelMap.bt.reg.filedir") } getBatchtoolsReg = function() { an = inte...
library(MapGAM) ### Name: colormap ### Title: Maps Predicted Values and Clusters on a Two-Dimentional Map ### Aliases: colormap ### Keywords: hplot misc smooth ### ** Examples data(MAdata) data(MAmap) obj <- list(grid=data.frame(MAdata$Xcoord,MAdata$Ycoord),fit=MAdata$Mercury) colormap(obj, MAmap, legend.name = "me...
/data/genthat_extracted_code/MapGAM/examples/colormap.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
624
r
library(MapGAM) ### Name: colormap ### Title: Maps Predicted Values and Clusters on a Two-Dimentional Map ### Aliases: colormap ### Keywords: hplot misc smooth ### ** Examples data(MAdata) data(MAmap) obj <- list(grid=data.frame(MAdata$Xcoord,MAdata$Ycoord),fit=MAdata$Mercury) colormap(obj, MAmap, legend.name = "me...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{v} \alias{v} \title{Returns a list of column names from the data dictionary for which the column named in the first argument is true. The first arg can be either a string or a name. The second must be a data.frame} \usage{ v...
/man/v.Rd
permissive
bokov/tidbits
R
false
true
1,957
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{v} \alias{v} \title{Returns a list of column names from the data dictionary for which the column named in the first argument is true. The first arg can be either a string or a name. The second must be a data.frame} \usage{ v...
library(shiny) library(tidyverse) library(hkdata) library(DT) library(leaflet) library(rgdal) # for converting the northing and easting into lon # https://stackoverflow.com/questions/36520915/converting-utms-to-lat-long-in-r # https://medium.com/@eric_hk/dcca-boundary-map-99edb31b62ca wgs84 = "+init=epsg:4326" hk1980 ...
/inst/lamp_post_data/app.R
no_license
XiangdongGu/hkdata
R
false
false
5,711
r
library(shiny) library(tidyverse) library(hkdata) library(DT) library(leaflet) library(rgdal) # for converting the northing and easting into lon # https://stackoverflow.com/questions/36520915/converting-utms-to-lat-long-in-r # https://medium.com/@eric_hk/dcca-boundary-map-99edb31b62ca wgs84 = "+init=epsg:4326" hk1980 ...
.libPaths(c("C:/Users/bhanu/Documents/R/win-library/3.3","C:/Program Files/R/R-3.3.2/library")) library(dplyr) library(cluster) library(WRS2) x<-read.csv("limitval.csv",header = FALSE) y <- x$V1 #args <- commandArgs(TRUE) #op <- args[1] #str(op) #Robost estimators(resistant to outliers) for dirty data #Winsorized mean ...
/estimators.R
no_license
bhanu49/Application-for-HRc
R
false
false
1,112
r
.libPaths(c("C:/Users/bhanu/Documents/R/win-library/3.3","C:/Program Files/R/R-3.3.2/library")) library(dplyr) library(cluster) library(WRS2) x<-read.csv("limitval.csv",header = FALSE) y <- x$V1 #args <- commandArgs(TRUE) #op <- args[1] #str(op) #Robost estimators(resistant to outliers) for dirty data #Winsorized mean ...
#MIT License #Copyright (c) 2021 Octavio Gonzalez-Lugo #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge...
/Modeling/hh.r
permissive
TavoGLC/DataAnalysisByExample
R
false
false
10,039
r
#MIT License #Copyright (c) 2021 Octavio Gonzalez-Lugo #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge...
runif.polygon <- function(n, win) { stopifnot(inherits(win, "sphwin") && win$type=="polygon") esphere <- sphwin(type="sphere", rad=win$rad) output <- matrix(, nrow=0, ncol=2) while((need <- (n - nrow(output))) > 0) { proposed <- runif.sphere(need, win=esphere) accept <- in.W(points=proposed, win=w...
/R/runif.polygon.R
no_license
baddstats/spherstat
R
false
false
512
r
runif.polygon <- function(n, win) { stopifnot(inherits(win, "sphwin") && win$type=="polygon") esphere <- sphwin(type="sphere", rad=win$rad) output <- matrix(, nrow=0, ncol=2) while((need <- (n - nrow(output))) > 0) { proposed <- runif.sphere(need, win=esphere) accept <- in.W(points=proposed, win=w...
#' Update labelled data to last version #' #' Labelled data imported with \pkg{haven} version 1.1.2 or before or #' created with [haven::labelled()] version 1.1.0 or before was using #' "labelled" and "labelled_spss" classes. #' #' Since version 2.0.0 of these two packages, "haven_labelled" and #' "haven_labelled_spss"...
/R/retrocompatibility.R
no_license
henrydoth/labelled
R
false
false
2,036
r
#' Update labelled data to last version #' #' Labelled data imported with \pkg{haven} version 1.1.2 or before or #' created with [haven::labelled()] version 1.1.0 or before was using #' "labelled" and "labelled_spss" classes. #' #' Since version 2.0.0 of these two packages, "haven_labelled" and #' "haven_labelled_spss"...
#PROGENy analysis Jurkat WT vs clones #This code follows the tutorial available here: https://bioc.ism.ac.jp/packages/3.14/bioc/vignettes/progeny/inst/doc/progenyBulk.html #PROGENy is available here: https://saezlab.github.io/progeny/ #This script calculates PROGENy pathway scores for all pathways included in the data...
/Progeny_jurkat_wt_vs_clones.R
no_license
cosmintudose/RNASeq_Jurkat_pipeline
R
false
false
6,835
r
#PROGENy analysis Jurkat WT vs clones #This code follows the tutorial available here: https://bioc.ism.ac.jp/packages/3.14/bioc/vignettes/progeny/inst/doc/progenyBulk.html #PROGENy is available here: https://saezlab.github.io/progeny/ #This script calculates PROGENy pathway scores for all pathways included in the data...
#************************************************* # FP-GROWTH - SPARK FRAMEWORK #************************************************* # En este script se usa el algoritmo de obtencion de reglas FP-GROWTH # El motivo es realizar una comparación con los resultados obtenidos en APRIORI #Iniciamos sesión en Spark if (n...
/fp-frowth.R
permissive
joseangeldiazg/twitter-text-mining
R
false
false
2,714
r
#************************************************* # FP-GROWTH - SPARK FRAMEWORK #************************************************* # En este script se usa el algoritmo de obtencion de reglas FP-GROWTH # El motivo es realizar una comparación con los resultados obtenidos en APRIORI #Iniciamos sesión en Spark if (n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/partners_objects.R \name{UserOverrides} \alias{UserOverrides} \title{UserOverrides Object} \usage{ UserOverrides(ipAddress = NULL, userId = NULL) } \arguments{ \item{ipAddress}{IP address to use instead of the user's geo-located IP address} ...
/googlepartnersv2.auto/man/UserOverrides.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
649
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/partners_objects.R \name{UserOverrides} \alias{UserOverrides} \title{UserOverrides Object} \usage{ UserOverrides(ipAddress = NULL, userId = NULL) } \arguments{ \item{ipAddress}{IP address to use instead of the user's geo-located IP address} ...
library(here) library(tidyverse) library(readxl) ## Extract bacterial qPCR standard curves ## Standard Curve 2016-09-19 --------------------------------------------------- get_std_0919 <- function(xcl_file){ cols <- c("well","sample_name","conc", "plate1", "skip5", "plate2", "skip7", "plate3", ...
/secondary_analysis/qpcrBacStd.R
no_license
nate-d-olson/abundance_assessment
R
false
false
2,240
r
library(here) library(tidyverse) library(readxl) ## Extract bacterial qPCR standard curves ## Standard Curve 2016-09-19 --------------------------------------------------- get_std_0919 <- function(xcl_file){ cols <- c("well","sample_name","conc", "plate1", "skip5", "plate2", "skip7", "plate3", ...
## Summary This assigment aims and goals at furnishing the R code required for plotting 4 pre-defined plots ## Plot 1 Reading the file Reading, naming and subsetting power consumption data ```{r} filepath<-"C:/Users/new/Downloads/exdata_data_household_power_consumption/household_power_consumption.txt" power <- r...
/Plot1.R
no_license
dans515c/ExData_Plotting1
R
false
false
865
r
## Summary This assigment aims and goals at furnishing the R code required for plotting 4 pre-defined plots ## Plot 1 Reading the file Reading, naming and subsetting power consumption data ```{r} filepath<-"C:/Users/new/Downloads/exdata_data_household_power_consumption/household_power_consumption.txt" power <- r...
test_that("dm_disambiguate_cols() works as intended", { # FIXME: solve issue #330 skip_if_src("postgres") expect_equivalent_dm( expect_message(dm_disambiguate_cols(dm_for_disambiguate())), dm_for_disambiguate_2() ) })
/tests/testthat/test-disambiguate.R
permissive
jawond/dm
R
false
false
234
r
test_that("dm_disambiguate_cols() works as intended", { # FIXME: solve issue #330 skip_if_src("postgres") expect_equivalent_dm( expect_message(dm_disambiguate_cols(dm_for_disambiguate())), dm_for_disambiguate_2() ) })
# Title: Various gene selection methods. # # Author: M. Slawski, adapted from A-L Boulesteix # Email: <Martin.Slawski@campus.lmu.de> # Date of creation: 26.9.2007 # # Brief description: # Returns an object of class 'GeneSel'. # # Arguments: # -X: matrix of variables (rows are observations,columns are vari...
/Code/surv/geneSelection.R
no_license
mywanuo/PLPPS-pipeline
R
false
false
3,915
r
# Title: Various gene selection methods. # # Author: M. Slawski, adapted from A-L Boulesteix # Email: <Martin.Slawski@campus.lmu.de> # Date of creation: 26.9.2007 # # Brief description: # Returns an object of class 'GeneSel'. # # Arguments: # -X: matrix of variables (rows are observations,columns are vari...
#' Extracts and computes information criteria and fits statistics for kfold #' cross validated partial least squares beta regression models #' #' This function extracts and computes information criteria and fits statistics #' for kfold cross validated partial least squares beta regression models for #' both formula or...
/R/kfolds2CVinfos_beta.R
no_license
fbertran/plsRbeta
R
false
false
22,905
r
#' Extracts and computes information criteria and fits statistics for kfold #' cross validated partial least squares beta regression models #' #' This function extracts and computes information criteria and fits statistics #' for kfold cross validated partial least squares beta regression models for #' both formula or...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/boxplot_abundance.R \name{boxplot_abundance} \alias{boxplot_abundance} \title{Abundance Boxplot} \usage{ boxplot_abundance(d, x, y, line = NULL, violin = FALSE, na.rm = FALSE, show.points = TRUE) } \arguments{ \item{d}{\code{\link{phyloseq-...
/man/boxplot_abundance.Rd
no_license
jykzel/microbiome
R
false
true
947
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/boxplot_abundance.R \name{boxplot_abundance} \alias{boxplot_abundance} \title{Abundance Boxplot} \usage{ boxplot_abundance(d, x, y, line = NULL, violin = FALSE, na.rm = FALSE, show.points = TRUE) } \arguments{ \item{d}{\code{\link{phyloseq-...
library(parallel) bsub = new.env(hash=T) unlink(".RData") bsub$get.bsub.accumulator <- function(funcFile, bsubCommand, batchSize=1, baseOut = fp(prop$tmpdir), getInFile=bsub$getDefaultInputFile, ...
/src/bsub.R
permissive
danoreper/ovx2016
R
false
false
10,988
r
library(parallel) bsub = new.env(hash=T) unlink(".RData") bsub$get.bsub.accumulator <- function(funcFile, bsubCommand, batchSize=1, baseOut = fp(prop$tmpdir), getInFile=bsub$getDefaultInputFile, ...
################################# Start of Code ===================================== rm(list = ls()) getwd() setwd("G:/Georgia Tech/Analytical Models/Assignments") install.packages("data.table") install.packages("lubridate") install.packages("dplyr") install.packages("weatherData") require(data.table) require(lubrid...
/HW4_CUSUM.R
no_license
aten2001/Analytical-Models-Assignments
R
false
false
7,805
r
################################# Start of Code ===================================== rm(list = ls()) getwd() setwd("G:/Georgia Tech/Analytical Models/Assignments") install.packages("data.table") install.packages("lubridate") install.packages("dplyr") install.packages("weatherData") require(data.table) require(lubrid...
############################################################################### # # # WIFI | TRAINING RF MODEL FOR LONGITUDE | VERSION 3.0 | by ELSE # # # ...
/old scripts/2. Prediction LONGITUDE by LM (V7).R
no_license
elsemaja/WIFI-Fingerprinting
R
false
false
5,842
r
############################################################################### # # # WIFI | TRAINING RF MODEL FOR LONGITUDE | VERSION 3.0 | by ELSE # # # ...
#' Plot the Lasso path #' #' @description Plot the whole lasso path run by BTdecayLasso() with given lambda and path = TRUE #' @usage #' ##S3 method for class "swlasso" #' @param x Object with class "swlasso" #' @param ... Further arguments pass to or from other methods #' @export #' @import ggplot2 plot.sw...
/R/plot.R
no_license
cran/BTdecayLasso
R
false
false
1,630
r
#' Plot the Lasso path #' #' @description Plot the whole lasso path run by BTdecayLasso() with given lambda and path = TRUE #' @usage #' ##S3 method for class "swlasso" #' @param x Object with class "swlasso" #' @param ... Further arguments pass to or from other methods #' @export #' @import ggplot2 plot.sw...
# Step 0 - Set up working environment and load packages ------------------------ # helper function to get packages # credit Drew Conway, "Machine Learning for Hackers" (O'Reilly 2012) # https://github.com/johnmyleswhite/ML_for_Hackers/blob/master/package_installer.R # set list of packages pckgs <- c("readr", "dplyr", "...
/r/02_r101_session_2.R
no_license
Jim89/r101
R
false
false
6,502
r
# Step 0 - Set up working environment and load packages ------------------------ # helper function to get packages # credit Drew Conway, "Machine Learning for Hackers" (O'Reilly 2012) # https://github.com/johnmyleswhite/ML_for_Hackers/blob/master/package_installer.R # set list of packages pckgs <- c("readr", "dplyr", "...
`designdist` <- function (x, method = "(A+B-2*J)/(A+B)", terms = c("binary", "quadratic", "minimum"), abcd = FALSE, alphagamma = FALSE, name) { terms <- match.arg(terms) if ((abcd || alphagamma) && terms != "binary") warning("Perhaps terms should be 'binary' with 'abcd' ...
/R/designdist.R
no_license
Eric-1986/vegan
R
false
false
1,310
r
`designdist` <- function (x, method = "(A+B-2*J)/(A+B)", terms = c("binary", "quadratic", "minimum"), abcd = FALSE, alphagamma = FALSE, name) { terms <- match.arg(terms) if ((abcd || alphagamma) && terms != "binary") warning("Perhaps terms should be 'binary' with 'abcd' ...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Estimates the BKMR-DLM for a multiple time-varying predictor. #' #' @param yz a matrix that is cbind(y,Z) where Z is a matrix of covariates that does not include an intercept and y is the ve...
/R/RcppExports.R
no_license
niehs-prime/regimes
R
false
false
4,663
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Estimates the BKMR-DLM for a multiple time-varying predictor. #' #' @param yz a matrix that is cbind(y,Z) where Z is a matrix of covariates that does not include an intercept and y is the ve...
#' Render Scene #' #' Takes the scene description and renders an image, either to the device or to a filename. #' #' @param scene Tibble of object locations and properties. #' @param width Default `400`. Width of the render, in pixels. #' @param height Default `400`. Height of the render, in pixels. #' @param fov De...
/R/render_scene.R
no_license
salma-rodriguez/rayrender
R
false
false
29,583
r
#' Render Scene #' #' Takes the scene description and renders an image, either to the device or to a filename. #' #' @param scene Tibble of object locations and properties. #' @param width Default `400`. Width of the render, in pixels. #' @param height Default `400`. Height of the render, in pixels. #' @param fov De...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.symbol.log10} \alias{mx.symbol.log10} \title{log10:Returns element-wise Base-10 logarithmic value of the input.} \usage{ mx.symbol.log10(...) } \arguments{ \item{data}{NDArray-or-Symbol The input array.} \item{name...
/Rsite/source/api/man/mx.symbol.log10.Rd
no_license
mli/new-docs
R
false
true
576
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.symbol.log10} \alias{mx.symbol.log10} \title{log10:Returns element-wise Base-10 logarithmic value of the input.} \usage{ mx.symbol.log10(...) } \arguments{ \item{data}{NDArray-or-Symbol The input array.} \item{name...
# Vetor # Sequencia de elementos do mesmo tipo x <- c(1,3,5,6,8) m = 2:20 x+2 x/2 x*2 x-2 # média mean(x) # mediana median(x) # soma sum(x) # desvio padrão sd(x) # plotando boxplot boxplot(x) boxplot(m)
/Curso em portugues da Udemy/01 funções básicas.R
no_license
diegofsousa/LearningMachineLearningWithR
R
false
false
213
r
# Vetor # Sequencia de elementos do mesmo tipo x <- c(1,3,5,6,8) m = 2:20 x+2 x/2 x*2 x-2 # média mean(x) # mediana median(x) # soma sum(x) # desvio padrão sd(x) # plotando boxplot boxplot(x) boxplot(m)
#!/usr/local/bin/Rscript require("WGCNA") options(stringsAsFactors = FALSE) load("results/E.RData") load("results/WCGNA_part1.RData") load("results/results.RData") load("data/TOM.RData") ###take genes in the turquoise module, get their TOM matrix components and then send to cytoscape tur <- results[which(results[...
/scripts/plot_turquoise
no_license
Bongomountainthesis/wgcna
R
false
false
3,650
#!/usr/local/bin/Rscript require("WGCNA") options(stringsAsFactors = FALSE) load("results/E.RData") load("results/WCGNA_part1.RData") load("results/results.RData") load("data/TOM.RData") ###take genes in the turquoise module, get their TOM matrix components and then send to cytoscape tur <- results[which(results[...
library(ggplot2) library(lme4) library(grid) library(gridExtra) library(stringr) library(jtools) library(lattice) library(plotrix) #Plot layout settings basic.theme <- theme( panel.background = element_rect( fill = "transparent",colour = NA), panel.grid.major = element_line(colour = "grey95"), panel.grid.min...
/analysis/0main.R
no_license
marisacasillas/CBL-Roete
R
false
false
6,515
r
library(ggplot2) library(lme4) library(grid) library(gridExtra) library(stringr) library(jtools) library(lattice) library(plotrix) #Plot layout settings basic.theme <- theme( panel.background = element_rect( fill = "transparent",colour = NA), panel.grid.major = element_line(colour = "grey95"), panel.grid.min...
#' Run a built dockerfile locally, accessed through the 8787 port #' Assumes your built image is named after your dockerhub username #' #' @param dockerhub_username username for dockerhub #' @param project_name built image name #' #' @return Opens url with container running #' @export #' #' @examples run_local_dockerfi...
/R/run_local_dockerfile.R
permissive
smwindecker/dockertools
R
false
false
603
r
#' Run a built dockerfile locally, accessed through the 8787 port #' Assumes your built image is named after your dockerhub username #' #' @param dockerhub_username username for dockerhub #' @param project_name built image name #' #' @return Opens url with container running #' @export #' #' @examples run_local_dockerfi...
## app.R ## library(shinydashboard) ui <- dashboardPage( dashboardHeader(title = '镇铭的osu毕设'), dashboardSidebar( sidebarMenu( menuItem('Dashboard',tabName='dashboard',icon=icon('dashboard')), menuItem('Widgets',tabName = 'widgets',icon=icon('th')) ) ), dashboardBody( tabItems( ...
/shiny.R
no_license
git874997967/graduate
R
false
false
1,160
r
## app.R ## library(shinydashboard) ui <- dashboardPage( dashboardHeader(title = '镇铭的osu毕设'), dashboardSidebar( sidebarMenu( menuItem('Dashboard',tabName='dashboard',icon=icon('dashboard')), menuItem('Widgets',tabName = 'widgets',icon=icon('th')) ) ), dashboardBody( tabItems( ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10954 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10954 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/vis.coherence^3.E-f2.qdimacs c outpu...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/tipfixpoint/vis.coherence^3.E-f2/vis.coherence^3.E-f2.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
643
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10954 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10954 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/vis.coherence^3.E-f2.qdimacs c outpu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setAxis.R \name{setAxis} \alias{setAxis} \title{Set up an Axis} \usage{ setAxis(data, axis.range, axis.log, axis.rev, axis.labels, ...) } \arguments{ \item{data}{the coordinates for the particular axis} \item{axis.range}{set axis range.} \i...
/man/setAxis.Rd
permissive
ldecicco-USGS/smwrGraphs
R
false
true
746
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setAxis.R \name{setAxis} \alias{setAxis} \title{Set up an Axis} \usage{ setAxis(data, axis.range, axis.log, axis.rev, axis.labels, ...) } \arguments{ \item{data}{the coordinates for the particular axis} \item{axis.range}{set axis range.} \i...
#' Save Colorized and Juxtaposed Images #' #' \code{clsave} saves images that have been colorized using \code{colorize} or #' juxtaposed with \code{juxtapose}. #' #' @param response a response object of a \code{colorize} function call. #' @param destfile a character string or vector with the name where the images a...
/R/clsave.R
no_license
zumbov2/colorizer
R
false
false
1,376
r
#' Save Colorized and Juxtaposed Images #' #' \code{clsave} saves images that have been colorized using \code{colorize} or #' juxtaposed with \code{juxtapose}. #' #' @param response a response object of a \code{colorize} function call. #' @param destfile a character string or vector with the name where the images a...
###################################################### ### Fit the regression model with testing data ### ###################################################### ### Author: Chengliang Tang ### Project 3 XGBtest <- function(modelList, dat_test){ ### Fit the classfication model with testing data ### Input: ...
/lib/test_xgboost.R
no_license
Levichasedream/xgboost1
R
false
false
878
r
###################################################### ### Fit the regression model with testing data ### ###################################################### ### Author: Chengliang Tang ### Project 3 XGBtest <- function(modelList, dat_test){ ### Fit the classfication model with testing data ### Input: ...
#' get_ecocrop #' #' get new ecocrop entry for a crop #' #' data scraped from FAO website 2017, see scraping script in data-raw/21_ExtractEcoCropSheets.R #' #' @param cropname an ecocrop cropname #' @param field a field to select from the ecocrop database #' @param ecocrop_object whether to return results as an ecocrop...
/R/get_ecocrop.r
permissive
KuldeepSJadon/climcropr
R
false
false
3,346
r
#' get_ecocrop #' #' get new ecocrop entry for a crop #' #' data scraped from FAO website 2017, see scraping script in data-raw/21_ExtractEcoCropSheets.R #' #' @param cropname an ecocrop cropname #' @param field a field to select from the ecocrop database #' @param ecocrop_object whether to return results as an ecocrop...
library(tidyverse) library(ggplot2) library(trend) library(timetk) library(lubridate) library(astsa) library(forecast) library(tseries) library(TSA) library(rmarkdown) library(fpp2) library(readxl) sar install.packages("TSA") install.packages("testcorr") install.packages("rmarkdown") install.packages('fpp2') #Read da...
/script.R
no_license
nolafatazz/crime_ts
R
false
false
8,599
r
library(tidyverse) library(ggplot2) library(trend) library(timetk) library(lubridate) library(astsa) library(forecast) library(tseries) library(TSA) library(rmarkdown) library(fpp2) library(readxl) sar install.packages("TSA") install.packages("testcorr") install.packages("rmarkdown") install.packages('fpp2') #Read da...
oppe_readmit_zscore_plt <- function(data){ # Readmit Plots for OPPE if(!nrow(readmit_tbl) >= 10){ return(NA) } else { # Readmit Trends - Expected, Actual, CMI, SOI ---- # Make tbl readmit_trend_tbl <- readmit_tbl %>% mutate(dsch_date = ymd(dsch_date)) %>% ...
/R/Functions/oppe_readmit_zscore_plt.R
no_license
spsanderson/bmhmc-sql
R
false
false
2,192
r
oppe_readmit_zscore_plt <- function(data){ # Readmit Plots for OPPE if(!nrow(readmit_tbl) >= 10){ return(NA) } else { # Readmit Trends - Expected, Actual, CMI, SOI ---- # Make tbl readmit_trend_tbl <- readmit_tbl %>% mutate(dsch_date = ymd(dsch_date)) %>% ...
\name{NEWS} \title{vegan News} \encoding{UTF-8} \section{Changes in version 2.5-0}{ \subsection{GENERAL}{ \itemize{ \item This is a major new release with changes all over the package: Nearly 40\% of program files were changed from the previous release. Please report regressions and other iss...
/inst/NEWS.Rd
no_license
aaronjg/vegan
R
false
false
99,110
rd
\name{NEWS} \title{vegan News} \encoding{UTF-8} \section{Changes in version 2.5-0}{ \subsection{GENERAL}{ \itemize{ \item This is a major new release with changes all over the package: Nearly 40\% of program files were changed from the previous release. Please report regressions and other iss...
age <- c(4, 8, 7, 12, 6, 9, 10, 14, 7) gender <- as.factor(c(1, 0, 1, 1, 1, 0, 1, 0, 0)) bmi_p <- c(0.86, 0.45, 0.99, 0.84, 0.85, 0.67, 0.91, 0.29, 0.88) m_edu <- as.factor(c(0, 1, 1, 2, 2, 3, 2, 0, 1)) p_edu <- as.factor(c(0, 2, 2, 2, 2, 3, 2, 0, 0)) f_color <- as.factor(c("blue", "blue", "yellow", "...
/Lab1/dummy_coding.R
permissive
quartermaine/Introduction-to-Machine-Learning
R
false
false
888
r
age <- c(4, 8, 7, 12, 6, 9, 10, 14, 7) gender <- as.factor(c(1, 0, 1, 1, 1, 0, 1, 0, 0)) bmi_p <- c(0.86, 0.45, 0.99, 0.84, 0.85, 0.67, 0.91, 0.29, 0.88) m_edu <- as.factor(c(0, 1, 1, 2, 2, 3, 2, 0, 1)) p_edu <- as.factor(c(0, 2, 2, 2, 2, 3, 2, 0, 0)) f_color <- as.factor(c("blue", "blue", "yellow", "...
library(ggplot2) # download data if needed if(!file.exists("summarySCC_PM25.rds")) { fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, destfile = "dataset.zip", method = "curl") unzip("dataset.zip") unlink("dataset.zip") } # read in data NEI <- rea...
/plot4.R
no_license
gitcub/ExData_Project2
R
false
false
1,267
r
library(ggplot2) # download data if needed if(!file.exists("summarySCC_PM25.rds")) { fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, destfile = "dataset.zip", method = "curl") unzip("dataset.zip") unlink("dataset.zip") } # read in data NEI <- rea...
library(ggplot2) twitter_data = read.csv("twitter-fulldata.csv") imdb_data = read.csv("imdb-fulldata.csv") amazon_data = read.csv("amazon-fulldata.csv") twitter_data_emb = twitter_data[twitter_data$EXTENSION != "nn" , ] twitter_data_nn = twitter_data[twitter_data$EXTENSION != "emb" , ] imdb_data_emb = imdb_data[imdb_...
/src/analysis/visualizer_text.R
no_license
roger-creus/Which-Design-Decisions-in-AI-enabled-MobileApplications-Contribute-to-Greener-AI
R
false
false
2,083
r
library(ggplot2) twitter_data = read.csv("twitter-fulldata.csv") imdb_data = read.csv("imdb-fulldata.csv") amazon_data = read.csv("amazon-fulldata.csv") twitter_data_emb = twitter_data[twitter_data$EXTENSION != "nn" , ] twitter_data_nn = twitter_data[twitter_data$EXTENSION != "emb" , ] imdb_data_emb = imdb_data[imdb_...
library(Matrix) source("formula_parsers.R") poly_ridge_regression <- function(formula, data, lambda=1) { obj <- structure(list(), class="poly.ridge.lm") obj$base_formula <- formula(get_nonspecial_terms(formula)) obj$response_name <- get_response_name(formula) obj$poly_terms <- parse_special_terms(get_special_...
/poly_ridge_regression.R
no_license
madrury/poly-ridge-regressor
R
false
false
3,323
r
library(Matrix) source("formula_parsers.R") poly_ridge_regression <- function(formula, data, lambda=1) { obj <- structure(list(), class="poly.ridge.lm") obj$base_formula <- formula(get_nonspecial_terms(formula)) obj$response_name <- get_response_name(formula) obj$poly_terms <- parse_special_terms(get_special_...
source("~/Dropbox/Chido/comparaciones/resultados/plotImage_todos_vs_todos(copia)(copia).R") load("~/Dropbox/Chido/permanencias.RData") a<-permanencias.perturbacion perturbaciones.main<-c("Sin perturbar","Perturbando las lluvias (sequías)", "Perturbando a las arveneses (malezas)", "Perturbando a los herbívoros (plagas)"...
/comparaciones/resultados/comparaciones_manejo_vs_manejo_110910.R
no_license
laparcela/modelo_red_booleana_milpa_rafa
R
false
false
9,953
r
source("~/Dropbox/Chido/comparaciones/resultados/plotImage_todos_vs_todos(copia)(copia).R") load("~/Dropbox/Chido/permanencias.RData") a<-permanencias.perturbacion perturbaciones.main<-c("Sin perturbar","Perturbando las lluvias (sequías)", "Perturbando a las arveneses (malezas)", "Perturbando a los herbívoros (plagas)"...
#Class implementing an Association Rules Algorithm #Implements the GeneticFuzzyApriori_A KEEL association rules algorithm #Author: Oliver Sanchez GeneticFuzzyApriori_A <- function(dat, seed=1286082570,NumberofEvaluations=10000,PopulationSize=50,ProbabilityofMutation=0.01,ProbabilityofCrossover=0.8,ParameterdforMMA...
/RKEEL/R/GeneticFuzzyApriori-A.R
no_license
i02momuj/RKEEL
R
false
false
3,726
r
#Class implementing an Association Rules Algorithm #Implements the GeneticFuzzyApriori_A KEEL association rules algorithm #Author: Oliver Sanchez GeneticFuzzyApriori_A <- function(dat, seed=1286082570,NumberofEvaluations=10000,PopulationSize=50,ProbabilityofMutation=0.01,ProbabilityofCrossover=0.8,ParameterdforMMA...
## BIO8069 ### Assignment - Part 1:Wildife Acoustics #read in relevant packages. The packages listed below won't all be used. #I have set up this code over the course of the practicals for this module as I can then #easily copy and paste it into scripts, which has helped prevent re-installation of packages. necess...
/Assignment_Part_1.R
no_license
SheenaDavis/BIO8068_Assignment_Part1
R
false
false
17,452
r
## BIO8069 ### Assignment - Part 1:Wildife Acoustics #read in relevant packages. The packages listed below won't all be used. #I have set up this code over the course of the practicals for this module as I can then #easily copy and paste it into scripts, which has helped prevent re-installation of packages. necess...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/topoJSON_data.R \docType{data} \name{mxmunicipio.topoJSON} \alias{mxmunicipio.topoJSON} \title{Map of the all Mexican municipios and delegaciones} \usage{ data(mxmunicipio.topoJSON) } \description{ A data.frame which contains a map of all Mex...
/man/mxmunicipio.topoJSON.Rd
permissive
DennyMtz/mxmaps
R
false
true
599
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/topoJSON_data.R \docType{data} \name{mxmunicipio.topoJSON} \alias{mxmunicipio.topoJSON} \title{Map of the all Mexican municipios and delegaciones} \usage{ data(mxmunicipio.topoJSON) } \description{ A data.frame which contains a map of all Mex...
# załadowanie bibliotek library(proxy) #zmiana katologu roboczego workDir <- "D:\\Adam_nowy\\TextMining\\TextMining" setwd(workDir) #definicja katalogu ze skryptami scriptDir <- ".\\scripts" #załadowanie skryptu sourceFile <- paste(scriptDir, "frequency_matrix.R", sep="\\...
/scripts/mds.R
no_license
adam96op/TextMining
R
false
false
1,196
r
# załadowanie bibliotek library(proxy) #zmiana katologu roboczego workDir <- "D:\\Adam_nowy\\TextMining\\TextMining" setwd(workDir) #definicja katalogu ze skryptami scriptDir <- ".\\scripts" #załadowanie skryptu sourceFile <- paste(scriptDir, "frequency_matrix.R", sep="\\...
library(shiny) source("ui.R") source("server.R") shinyApp(ui, server) #runApp("shiny_v1")
/scripts/R_run/davidyu_stock/v1/app.R
permissive
davidyuqiwei/davidyu_stock
R
false
false
91
r
library(shiny) source("ui.R") source("server.R") shinyApp(ui, server) #runApp("shiny_v1")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parafac_plot_functions.R \name{splithalf_plot} \alias{splithalf_plot} \title{Plot results from a splithalf analysis} \usage{ splithalf_plot(fits) } \arguments{ \item{fits}{list of components data} } \value{ ggplot } \description{ Graphs of al...
/man/splithalf_plot.Rd
no_license
MatthiasPucher/staRdom
R
false
true
472
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parafac_plot_functions.R \name{splithalf_plot} \alias{splithalf_plot} \title{Plot results from a splithalf analysis} \usage{ splithalf_plot(fits) } \arguments{ \item{fits}{list of components data} } \value{ ggplot } \description{ Graphs of al...
analysis = function(fileName,bitNumber){ # Constants for detecting the initial pattern STEP1 = 255 STEP2 = 0 EVENT = 1 # Read the data from the file file_data = read.table(fileName,sep = "\t",header = TRUE) # List of variables used in this function time_stamp = 0 value = 0 monitor = 0 start_...
/data_col/analysis.R
no_license
nesl/umpu
R
false
false
1,038
r
analysis = function(fileName,bitNumber){ # Constants for detecting the initial pattern STEP1 = 255 STEP2 = 0 EVENT = 1 # Read the data from the file file_data = read.table(fileName,sep = "\t",header = TRUE) # List of variables used in this function time_stamp = 0 value = 0 monitor = 0 start_...
test_that("test rawresidual messages", { ## pp obj not correct obj <- pp_hpp(lambda = 1) class(obj) <- "non-pp" expect_output(rawresidual(object = obj,events = c(1,2)), "Please input the right model. Select from hp, hpp and mmhp.") }) test_that("test simple cases", { ## special cases of ...
/tests/testthat/test-rawresidual.R
permissive
wjakethompson/ppdiag
R
false
false
1,329
r
test_that("test rawresidual messages", { ## pp obj not correct obj <- pp_hpp(lambda = 1) class(obj) <- "non-pp" expect_output(rawresidual(object = obj,events = c(1,2)), "Please input the right model. Select from hp, hpp and mmhp.") }) test_that("test simple cases", { ## special cases of ...
## Plotting results -- intercepts heller <- './Data/Coats May 2018/Heller 2014 regression table.csv' %>% read.csv(stringsAsFactors = F) heller.int <- heller %>% subset(Var == 'B0') heller.int <- data.frame(year = heller.int$year, inter = heller.int$Overall, source = 'H&K 2014') seltzer <- '...
/Graphing and comparisons.R
no_license
MengLeZhang/Coats-paper
R
false
false
7,693
r
## Plotting results -- intercepts heller <- './Data/Coats May 2018/Heller 2014 regression table.csv' %>% read.csv(stringsAsFactors = F) heller.int <- heller %>% subset(Var == 'B0') heller.int <- data.frame(year = heller.int$year, inter = heller.int$Overall, source = 'H&K 2014') seltzer <- '...
theta.start.est <- function (data, distribution) { ndist <- numdist(distribution) y <- Response(data) if (generic.distribution(distribution) == "exponential") { the.case.weights <- case.weights(data) theta.start <- c(logb(sum(y * the.case.weights)/sum(the.case.weights)), 1) ...
/R/theta.start.est.R
no_license
anhnguyendepocen/SMRD
R
false
false
964
r
theta.start.est <- function (data, distribution) { ndist <- numdist(distribution) y <- Response(data) if (generic.distribution(distribution) == "exponential") { the.case.weights <- case.weights(data) theta.start <- c(logb(sum(y * the.case.weights)/sum(the.case.weights)), 1) ...
# NL-Logestic with bound V 0.4.5 # Payam Mokhtarian ##---------------------- Loading packages library(shiny) ##---------------------- User interface shinyUI(fluidPage( # Title titlePanel("Boundery decison in non-linear logistic regression"), # Sidebar controls sidebarLayout( sidebarPanel( sele...
/ui.R
no_license
payamgit/NL-Logestic
R
false
false
1,056
r
# NL-Logestic with bound V 0.4.5 # Payam Mokhtarian ##---------------------- Loading packages library(shiny) ##---------------------- User interface shinyUI(fluidPage( # Title titlePanel("Boundery decison in non-linear logistic regression"), # Sidebar controls sidebarLayout( sidebarPanel( sele...