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
index <- function(x) 1:length(x)
/R/index.R
no_license
cran/tdist
R
false
false
33
r
index <- function(x) 1:length(x)
rm(list = ls()) .rs.restartR() options(scipen=999) # Source functions path_source <- "/media/chris/DATA/Documents/Bot_Trading/Coinmaker_v0.1/Source" files.sources = list.files(path_source, full.names = T) sapply(files.sources, source) path_values <- "/media/chris/DATA/Documents/Bot_Trading/Coinmaker_v0.1/Testing Modul...
/Testing Module/price_action/PriceActionSimple.R
no_license
jfontestad/Coinmaker_v0.2
R
false
false
4,950
r
rm(list = ls()) .rs.restartR() options(scipen=999) # Source functions path_source <- "/media/chris/DATA/Documents/Bot_Trading/Coinmaker_v0.1/Source" files.sources = list.files(path_source, full.names = T) sapply(files.sources, source) path_values <- "/media/chris/DATA/Documents/Bot_Trading/Coinmaker_v0.1/Testing Modul...
\name{run.simplex} \alias{run.simplex} \title{Runs a serial optimization using minqa package} \usage{ run.simplex(mcf) } \description{ Runs a serial optimization using minqa package } \examples{ # generate slices for a model require(mopt) require(dfoptim) # let's take a dummy objective function MOPT_OBJ_FUNC <- ob...
/man/run.simplex.Rd
no_license
priscillafialho/mopt
R
false
false
1,096
rd
\name{run.simplex} \alias{run.simplex} \title{Runs a serial optimization using minqa package} \usage{ run.simplex(mcf) } \description{ Runs a serial optimization using minqa package } \examples{ # generate slices for a model require(mopt) require(dfoptim) # let's take a dummy objective function MOPT_OBJ_FUNC <- ob...
#--------part1---------- df[df$M=='N-',] head(DF) DF <- merge(df,df1,by='HH') rm(list=ls()) setwd("/Users/Apple/Desktop/simon/2018Winter/Marketing research using r/homework7/wegmans_data") getwd() df<-read_excel("Survey Data FINAL.xlsx") df1<-read.delim("txdata_insiders.txt", header = TRUE,sep = '|') df2<-read.delim...
/wegmans case code.R
no_license
YechengZhai/Wegmans-Project-Bigger-Data
R
false
false
4,255
r
#--------part1---------- df[df$M=='N-',] head(DF) DF <- merge(df,df1,by='HH') rm(list=ls()) setwd("/Users/Apple/Desktop/simon/2018Winter/Marketing research using r/homework7/wegmans_data") getwd() df<-read_excel("Survey Data FINAL.xlsx") df1<-read.delim("txdata_insiders.txt", header = TRUE,sep = '|') df2<-read.delim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/do_marxan_analysis_and_output.R \name{do_marxan_analysis_and_output} \alias{do_marxan_analysis_and_output} \title{Run marxan on bd problem and write output from all analysis} \usage{ do_marxan_analysis_and_output( APP_bd_prob, COR_bd_prob...
/man/do_marxan_analysis_and_output.Rd
no_license
langfob/bdpg
R
false
true
1,234
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/do_marxan_analysis_and_output.R \name{do_marxan_analysis_and_output} \alias{do_marxan_analysis_and_output} \title{Run marxan on bd problem and write output from all analysis} \usage{ do_marxan_analysis_and_output( APP_bd_prob, COR_bd_prob...
#### RUN ZIP model with beta for each host*parasite combination # use different variance for each beta ## For varying the abundance by site (here plant) you need to estimate the abundance per insect species first and then a characteristic abundance of an insect species on a plant species in particular. So you have to...
/finalmodels/allZIP123/d.R
no_license
jogwalker/bipartitemodelsBC
R
false
false
3,853
r
#### RUN ZIP model with beta for each host*parasite combination # use different variance for each beta ## For varying the abundance by site (here plant) you need to estimate the abundance per insect species first and then a characteristic abundance of an insect species on a plant species in particular. So you have to...
library(DBI) library(RPostgreSQL) library(readr) library(dplyr) library(lubridate) library(tidyr) #Read data files data0 <-read_delim(file="DPV/Data/SuperSales/SuperstoreSales_main.csv", delim=";", col_names = TRUE, col_types = NULL, locale = locale(encoding = 'LATIN1')) head(data0) #data1 <-read_delim(file="DPV/Data/...
/DPV/Assignment/Assignment3.R
no_license
ernstdevries/Datascience
R
false
false
4,424
r
library(DBI) library(RPostgreSQL) library(readr) library(dplyr) library(lubridate) library(tidyr) #Read data files data0 <-read_delim(file="DPV/Data/SuperSales/SuperstoreSales_main.csv", delim=";", col_names = TRUE, col_types = NULL, locale = locale(encoding = 'LATIN1')) head(data0) #data1 <-read_delim(file="DPV/Data/...
runway<-test Fault<-select(runway, Fault.Found.1, Fault.Found.2, Fault.Found.3, Fault.Found.4, Fault.Found.5) Result1<-as.data.frame(table(runway$MROC)) names(Result1)[1]<-"MROC" temp<-select(runway, MROC, AssemblyNo) temp1<-temp %>% group_by(AssemblyNo) %>% summarise(TotalCount=n()) temp1<-temp1 %>% arrange(desc(To...
/MROC_tab.R
no_license
Waylan49/Productivity_and_Quality_Data_Analysis
R
false
false
1,203
r
runway<-test Fault<-select(runway, Fault.Found.1, Fault.Found.2, Fault.Found.3, Fault.Found.4, Fault.Found.5) Result1<-as.data.frame(table(runway$MROC)) names(Result1)[1]<-"MROC" temp<-select(runway, MROC, AssemblyNo) temp1<-temp %>% group_by(AssemblyNo) %>% summarise(TotalCount=n()) temp1<-temp1 %>% arrange(desc(To...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/has_color.r \name{num_colors} \alias{num_colors} \title{Number of colors the terminal supports} \usage{ num_colors(forget = FALSE) } \arguments{ \item{forget}{Whether to forget the cached result of the color check.} } \value{ Numeric ...
/man/num_colors.Rd
no_license
jimhester/crayon
R
false
false
785
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/has_color.r \name{num_colors} \alias{num_colors} \title{Number of colors the terminal supports} \usage{ num_colors(forget = FALSE) } \arguments{ \item{forget}{Whether to forget the cached result of the color check.} } \value{ Numeric ...
#creates a field to the specified dimensions #vertical blueberry rows #horizontal wildflower row below the blueberries #nest coordinates and max distance from nest should be set here x_min = 0 y_min = 0 x_max = 150 y_max = 225 row_min_x = 0 row_max_x = 150 row_min_y = 75 row_max_y = 225 wild_min_x = 65 wild_max_x = ...
/Scaled Blueberry 7s.R
no_license
macquees/BumbleBeeWildflowerManuscript
R
false
false
3,142
r
#creates a field to the specified dimensions #vertical blueberry rows #horizontal wildflower row below the blueberries #nest coordinates and max distance from nest should be set here x_min = 0 y_min = 0 x_max = 150 y_max = 225 row_min_x = 0 row_max_x = 150 row_min_y = 75 row_max_y = 225 wild_min_x = 65 wild_max_x = ...
library(gamlss.dist) # Generating ex-Gaussian library(retimes) # Fitting ex-Gaussian library(vioplot) # For plotting replication kernel densities library(gplots) # For plotting means subslist <- c(1,3,5,7) # subslist <- c(2,4,6) nreps <- 500 propc_vec <- NULL # proportion correct per subject rtplus <- NULL # RTs o...
/res/pilot/model_check.R
no_license
gammagit/dnoise_xpt
R
false
false
6,047
r
library(gamlss.dist) # Generating ex-Gaussian library(retimes) # Fitting ex-Gaussian library(vioplot) # For plotting replication kernel densities library(gplots) # For plotting means subslist <- c(1,3,5,7) # subslist <- c(2,4,6) nreps <- 500 propc_vec <- NULL # proportion correct per subject rtplus <- NULL # RTs o...
## nat'l parks map example setwd("~/Desktop/puzzles-starting-2015/puzzle-18-natlparks/temp/Current_Shapes/Data_Store/06-06-12_Posting") ## read in packages library(dplyr) library(maps) library(maptools) library(mapproj) library(rgdal) library(broom) library(ggplot2) ## read in nat'l parks data nps_raw <- readShapeSp...
/puzzle-18-natlparks/national-parks-puzzle.R
no_license
mcfink/puzzle-scripts
R
false
false
1,515
r
## nat'l parks map example setwd("~/Desktop/puzzles-starting-2015/puzzle-18-natlparks/temp/Current_Shapes/Data_Store/06-06-12_Posting") ## read in packages library(dplyr) library(maps) library(maptools) library(mapproj) library(rgdal) library(broom) library(ggplot2) ## read in nat'l parks data nps_raw <- readShapeSp...
###################################################################### ################# == Load necessary packages == ###################### ###################################################################### ### Let's start by loading the packages we need... library(tidyverse) # A suite of packages used fo...
/Oct26th_R_Tutorial_LOESS_v02.R
no_license
visualneurosciencelab/RTutorials
R
false
false
13,856
r
###################################################################### ################# == Load necessary packages == ###################### ###################################################################### ### Let's start by loading the packages we need... library(tidyverse) # A suite of packages used fo...
# # This peer assessed assignment for Coursera 'Developing Data Products' module. # The objective is to create a Shiny application and deploy it on Rstudio's servers. # # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # # library(shiny) # Define se...
/server.R
no_license
SergiyRedchyts/shiny
R
false
false
1,161
r
# # This peer assessed assignment for Coursera 'Developing Data Products' module. # The objective is to create a Shiny application and deploy it on Rstudio's servers. # # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # # library(shiny) # Define se...
require(bio.survey) require(bio.lobster) la() p = bio.lobster::load.environment() p$libs = NULL ff = "LFA34Update" fp1 = file.path(project.datadirectory('bio.lobster'),"analysis",ff) fpf1 = file.path(project.figuredirectory('bio.lobster'),ff) p1 = p p1$yrs = 1969:2021 stratifiedAnalysesRecruits = function(p=p1, sur...
/inst/Updates/LFA34/2021/2c.stratifiedAnalysisRecruits.r
no_license
LobsterScience/bio.lobster
R
false
false
5,893
r
require(bio.survey) require(bio.lobster) la() p = bio.lobster::load.environment() p$libs = NULL ff = "LFA34Update" fp1 = file.path(project.datadirectory('bio.lobster'),"analysis",ff) fpf1 = file.path(project.figuredirectory('bio.lobster'),ff) p1 = p p1$yrs = 1969:2021 stratifiedAnalysesRecruits = function(p=p1, sur...
#' Patial SeeCiTe analysis of BAF and LRR in candidate CNV regions for a single sample #' @param input_data The input data table from readSingle. #' @param cohen_dist A cutoff on Cohen distance between CNV and flank LRR value distributions. If cohen distance is equal or smaller that this cutoff the distributions are co...
/R/analyzeSignalConcordanceSingle.R
permissive
shulp2211/SeeCiTe
R
false
false
7,073
r
#' Patial SeeCiTe analysis of BAF and LRR in candidate CNV regions for a single sample #' @param input_data The input data table from readSingle. #' @param cohen_dist A cutoff on Cohen distance between CNV and flank LRR value distributions. If cohen distance is equal or smaller that this cutoff the distributions are co...
#' s.class create a s.class plot for a dudi object (ade4) #' #' @param dfxy [data.frame]: A data frame containing the two columns for the axes #' @param fac [vector(character)]: A factor partitioning the rows of the data frame in classes. #' @param xax [numeric]: The column number of x in ‘dfxy’. Component from 'dudi.p...
/R/s.class.R
permissive
mcanouil/ggFunctions
R
false
false
7,278
r
#' s.class create a s.class plot for a dudi object (ade4) #' #' @param dfxy [data.frame]: A data frame containing the two columns for the axes #' @param fac [vector(character)]: A factor partitioning the rows of the data frame in classes. #' @param xax [numeric]: The column number of x in ‘dfxy’. Component from 'dudi.p...
library(msme) # library(msme, lib.loc="lib") library(MASS) data(medpar) data(ufc) denom <- rep(1:5, each=299, times=1)*100 # m : binomial denominator w medpar oset <- rep(1:5, each=299, times=1)*100 # offset Poisson, NB, offset w medpar loset <- log(oset) # log of oset ## Normal ufc <...
/tests/test_ml_glm2.R
no_license
cran/msme
R
false
false
2,571
r
library(msme) # library(msme, lib.loc="lib") library(MASS) data(medpar) data(ufc) denom <- rep(1:5, each=299, times=1)*100 # m : binomial denominator w medpar oset <- rep(1:5, each=299, times=1)*100 # offset Poisson, NB, offset w medpar loset <- log(oset) # log of oset ## Normal ufc <...
## Creo el objeto que delimita las fronteras. Este objeto está creado con la mascara. crs.lonlat <- CRS("+proj=longlat +datum=WGS84") ext <- as.vector(extent(projectExtent(mascara, crs.lonlat))) boundaries <- map('world', fill=TRUE, exact=FALSE, xlim=ext[1:2], ylim= ext[3:4], plot=FALSE) IDs <- sapply(strsplit(bound...
/sim20032009/figs/proj13abr/border.R
no_license
ClaudiaGEscribano/aod_and_PV
R
false
false
626
r
## Creo el objeto que delimita las fronteras. Este objeto está creado con la mascara. crs.lonlat <- CRS("+proj=longlat +datum=WGS84") ext <- as.vector(extent(projectExtent(mascara, crs.lonlat))) boundaries <- map('world', fill=TRUE, exact=FALSE, xlim=ext[1:2], ylim= ext[3:4], plot=FALSE) IDs <- sapply(strsplit(bound...
#' Multiple Latent Components Clustering - Subspace clustering assuming that the #' number of clusters is known #' #' For a fixed number of cluster function returns the best partition and basis #' for each subspace. #' #' In more detail, an algorithm \code{\link{mlcc.kmeans}} is run a #' \emph{numb.runs} of times w...
/R/mlcc.reps.R
no_license
sjwilczynski/varclust
R
false
false
5,004
r
#' Multiple Latent Components Clustering - Subspace clustering assuming that the #' number of clusters is known #' #' For a fixed number of cluster function returns the best partition and basis #' for each subspace. #' #' In more detail, an algorithm \code{\link{mlcc.kmeans}} is run a #' \emph{numb.runs} of times w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp282} \alias{spp282} \title{species function} \usage{ spp282(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental para...
/man/spp282.Rd
permissive
Djeppschmidt/Model.Microbiome
R
false
true
456
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp282} \alias{spp282} \title{species function} \usage{ spp282(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental para...
library(shiny) library(tidyverse) library(lubridate) library(dygraphs) library(xts) library(plotly) library(survival) library(lazyeval) library(htmlTable) library(xtable) shinyServer(function(input, output){ ## interactive user interfaces ## ----------------------------------------------------------------------...
/server.R
no_license
alecri/QRDF
R
false
false
20,232
r
library(shiny) library(tidyverse) library(lubridate) library(dygraphs) library(xts) library(plotly) library(survival) library(lazyeval) library(htmlTable) library(xtable) shinyServer(function(input, output){ ## interactive user interfaces ## ----------------------------------------------------------------------...
library("RSQLite") library("stringi") ##zapamietujemy sciezke sciezka<-"D:/Dokumenty/studia/kolo data science/projekt - analiza sentymentow dla seriali/" ##łączymy się z bazą baza_seriali<-dbConnect(SQLite(),dbname=paste0(sciezka,"baza_seriali.sql")) ##tworzymy tabelki dbSendQuery(baza_seriali, "CREATE TABLE Seri...
/seriale_baza.R
no_license
Kolo-Naukowe-Data-Science-PW/sentiment-analysis-2
R
false
false
4,551
r
library("RSQLite") library("stringi") ##zapamietujemy sciezke sciezka<-"D:/Dokumenty/studia/kolo data science/projekt - analiza sentymentow dla seriali/" ##łączymy się z bazą baza_seriali<-dbConnect(SQLite(),dbname=paste0(sciezka,"baza_seriali.sql")) ##tworzymy tabelki dbSendQuery(baza_seriali, "CREATE TABLE Seri...
# TR-prostate.R # Copyright: Kevin R. Coombes, 2004. # This file contains the application of the tail-rank test to # to a prostate cancer data set. For the data, see the paper by # Lapointe et al., PNAS 2004; 101:811-816. For a description of # the test, see our technical report. ###########################...
/inst/sample/TR-prostate.R
no_license
cran/TailRank
R
false
false
18,233
r
# TR-prostate.R # Copyright: Kevin R. Coombes, 2004. # This file contains the application of the tail-rank test to # to a prostate cancer data set. For the data, see the paper by # Lapointe et al., PNAS 2004; 101:811-816. For a description of # the test, see our technical report. ###########################...
library(data.table) library(corrplot) library(GGally) library(tidyverse) library(PerformanceAnalytics) library(plotly) library(Hmisc) library(rvest) library(stringr) library(magrittr) library(leaps) library(pander) library(dplyr) library(rvest) library(RCurl) # Prediction segmentation stage ---------------------------...
/Mean_prediction_analysis.R
no_license
akshaymurthy/NBA-draft-projections
R
false
false
4,316
r
library(data.table) library(corrplot) library(GGally) library(tidyverse) library(PerformanceAnalytics) library(plotly) library(Hmisc) library(rvest) library(stringr) library(magrittr) library(leaps) library(pander) library(dplyr) library(rvest) library(RCurl) # Prediction segmentation stage ---------------------------...
#' --- #' title: "organize_data.R" #' author: "" #' --- # This script will read in raw data from the input directory, clean it up to produce # the analytical dataset, and then write the analytical data to the output directory. #source in any useful functions source("useful_functions.R") library(haven) muslim_polit...
/analysis/organize_data.R
permissive
pkazemiuo/Muslim_Integration
R
false
false
4,179
r
#' --- #' title: "organize_data.R" #' author: "" #' --- # This script will read in raw data from the input directory, clean it up to produce # the analytical dataset, and then write the analytical data to the output directory. #source in any useful functions source("useful_functions.R") library(haven) muslim_polit...
# version du 13.06.13 print.flexrsurv=function (x, digits = max(3, getOption("digits") - 3), ...) { cat("\nCall: ", paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n\n", sep = "") if (length(coef(x))) { cat("Coefficients") if (is.character(co <- x$contrasts)) cat(" [contrasts: ", a...
/R/print.flexrsurv.R
no_license
cran/flexrsurv
R
false
false
913
r
# version du 13.06.13 print.flexrsurv=function (x, digits = max(3, getOption("digits") - 3), ...) { cat("\nCall: ", paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n\n", sep = "") if (length(coef(x))) { cat("Coefficients") if (is.character(co <- x$contrasts)) cat(" [contrasts: ", a...
v <- TRUE print(class(v)) #Numeric 12.3, 5, 999 v <- 23.5 print(class(v)) #Integer 2L, 34L, 0L v <- 2L print(class(v)) #Complex 3 + 2i v <- 2+5i print(class(v)) #Character 'a' , '"good", "TRUE", '23.4' v <- "TRUE" print(class(v)) #Raw "Hello" is stored as 48 65 6c 6c 6f v <- charToRaw("He...
/f4.R
no_license
rainalopes/R_workshop
R
false
false
344
r
v <- TRUE print(class(v)) #Numeric 12.3, 5, 999 v <- 23.5 print(class(v)) #Integer 2L, 34L, 0L v <- 2L print(class(v)) #Complex 3 + 2i v <- 2+5i print(class(v)) #Character 'a' , '"good", "TRUE", '23.4' v <- "TRUE" print(class(v)) #Raw "Hello" is stored as 48 65 6c 6c 6f v <- charToRaw("He...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818306987731e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual...
/CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615831284-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818306987731e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual...
isoph.ti=function(TIME, STATUS, Z, ZNAME, P, Q, shape, K, maxiter, eps){ #Time: observed survival time #Status: 1 for event I(X<=T); 0 for censored #Z: Z1=Z[,1], ... ZP=Z[,P] for isotonic covariates; W1=Z[,P+1], W1=Z[,P+Q]: additional covariates #ZNAME: ZNAME[1:P] for name of isotonic covariates; ZNAME[P+1;...
/R/01.isoph.ti.R
no_license
cran/isoSurv
R
false
false
4,135
r
isoph.ti=function(TIME, STATUS, Z, ZNAME, P, Q, shape, K, maxiter, eps){ #Time: observed survival time #Status: 1 for event I(X<=T); 0 for censored #Z: Z1=Z[,1], ... ZP=Z[,P] for isotonic covariates; W1=Z[,P+1], W1=Z[,P+Q]: additional covariates #ZNAME: ZNAME[1:P] for name of isotonic covariates; ZNAME[P+1;...
library(spatstat) library(maptools) library(raster) library(ggplot2) library(sf) library(rotl) library(rgdal) library(viridis) library(ape) library(dismo) library(dplyr) library(gridExtra) library(factoextra) library(phyloclim) library(geiger) library(phytools) library(ggridges) #setwd("~/FrogPloidy2020") setwd("~/Des...
/Primary_Analyses.R
no_license
KyleTDavid/FrogPloidy2020
R
false
false
18,385
r
library(spatstat) library(maptools) library(raster) library(ggplot2) library(sf) library(rotl) library(rgdal) library(viridis) library(ape) library(dismo) library(dplyr) library(gridExtra) library(factoextra) library(phyloclim) library(geiger) library(phytools) library(ggridges) #setwd("~/FrogPloidy2020") setwd("~/Des...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_operations.R \name{iot_create_provisioning_template} \alias{iot_create_provisioning_template} \title{Creates a fleet provisioning template} \usage{ iot_create_provisioning_template(templateName, description, templateBody, enabled, provi...
/cran/paws.internet.of.things/man/iot_create_provisioning_template.Rd
permissive
jcheng5/paws
R
false
true
1,743
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_operations.R \name{iot_create_provisioning_template} \alias{iot_create_provisioning_template} \title{Creates a fleet provisioning template} \usage{ iot_create_provisioning_template(templateName, description, templateBody, enabled, provi...
################################################################################################ ################### Calculating Drug-drug interactions using claims data ####################### ################################################################################################ # The R codes below can be ap...
/DDIcodes_havingDDIs.R
no_license
medicationmanagement/medicationmanagement.github.io
R
false
false
4,497
r
################################################################################################ ################### Calculating Drug-drug interactions using claims data ####################### ################################################################################################ # The R codes below can be ap...
get_dp_version <- function(dp){ dp.vers <- dp[2,1] # <General 3>: 2013, 2014 Spectrum files; <General5>: 2015 Spectrum files if(!dp.vers %in% c("<General 3>", "<General5>")) if(dp.vers == "<FirstYear MV>") dp.vers <- "Spectrum2016" else if(dp.vers == "<FirstYear MV2>") dp.vers <- "Spectrum2017" ...
/R/read-spectrum-files.R
no_license
aucarter/eppasm
R
false
false
48,887
r
get_dp_version <- function(dp){ dp.vers <- dp[2,1] # <General 3>: 2013, 2014 Spectrum files; <General5>: 2015 Spectrum files if(!dp.vers %in% c("<General 3>", "<General5>")) if(dp.vers == "<FirstYear MV>") dp.vers <- "Spectrum2016" else if(dp.vers == "<FirstYear MV2>") dp.vers <- "Spectrum2017" ...
## Put comments here that give an overall description of what your ## functions do ## This function creates a matrix object ## and adds functions to display it and inverse it makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setinver...
/cachematrix.R
no_license
pasterka/ProgrammingAssignment2
R
false
false
848
r
## Put comments here that give an overall description of what your ## functions do ## This function creates a matrix object ## and adds functions to display it and inverse it makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setinver...
args<-commandArgs(TRUE) library(ncdf4) tlat = as.numeric(args[1]) tlon = as.numeric(args[2]) infile = args[3] outfile = args[4] fin<-nc_open(infile) lat<-ncvar_get(fin,"lat") lon<-ncvar_get(fin,"lon") dy = abs(lat - tlat) dx = abs(lon%%360 - tlon%%360) #image(dx+dy) ind = arrayInd(which.min(dx+dy),dim(la...
/extract.R
permissive
dkorytin/scripts
R
false
false
508
r
args<-commandArgs(TRUE) library(ncdf4) tlat = as.numeric(args[1]) tlon = as.numeric(args[2]) infile = args[3] outfile = args[4] fin<-nc_open(infile) lat<-ncvar_get(fin,"lat") lon<-ncvar_get(fin,"lon") dy = abs(lat - tlat) dx = abs(lon%%360 - tlon%%360) #image(dx+dy) ind = arrayInd(which.min(dx+dy),dim(la...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/accessors_modifiers.R \name{header_row.names<-} \alias{header_row.names<-} \title{Modify Header Row Names} \usage{ header_row.names(x) <- value } \arguments{ \item{x}{an rtable object} \item{value}{vector with new row names} } \description{ ...
/man/header_row.names-set.Rd
permissive
bbaranow/rtables
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/accessors_modifiers.R \name{header_row.names<-} \alias{header_row.names<-} \title{Modify Header Row Names} \usage{ header_row.names(x) <- value } \arguments{ \item{x}{an rtable object} \item{value}{vector with new row names} } \description{ ...
## usar esta estructura del proyecto: ## * Title (give an appropriate title) and Author Name ## * Overview: In a few (2-3) sentences explain what is going to be reported on. ## * Simulations: Include English explanations of the simulations you ran, with the accompanying R code. Your explanations should make clear what...
/part1.R
no_license
diegoo/statistical_inference
R
false
false
2,812
r
## usar esta estructura del proyecto: ## * Title (give an appropriate title) and Author Name ## * Overview: In a few (2-3) sentences explain what is going to be reported on. ## * Simulations: Include English explanations of the simulations you ran, with the accompanying R code. Your explanations should make clear what...
% $Id: sc05-RPPAFit-class.Rd 938 2015-01-20 22:45:21Z proebuck $ \name{RPPAFit-class} \alias{RPPAFit-class} \alias{coef,RPPAFit-method} \alias{coefficients,RPPAFit-method} \alias{fitted,RPPAFit-method} \alias{hist,RPPAFit-method} \alias{image,RPPAFit-method} \alias{plot,RPPAFit,missing-method} \alias{resid,RPPAFit-met...
/man/sc05-RPPAFit-class.Rd
no_license
rmylonas/SuperCurvePAF
R
false
false
9,364
rd
% $Id: sc05-RPPAFit-class.Rd 938 2015-01-20 22:45:21Z proebuck $ \name{RPPAFit-class} \alias{RPPAFit-class} \alias{coef,RPPAFit-method} \alias{coefficients,RPPAFit-method} \alias{fitted,RPPAFit-method} \alias{hist,RPPAFit-method} \alias{image,RPPAFit-method} \alias{plot,RPPAFit,missing-method} \alias{resid,RPPAFit-met...
## ----------------------------------------------------------------------- ## Wrapper function for MADlib's linear, logistic and multinomial ## logistic regressions ## ----------------------------------------------------------------------- setClass("logregr.madlib") setClass("logregr.madlib.grps") ## na.action is a ...
/R/madlib-glm.R
no_license
hooi/PivotalR
R
false
false
12,233
r
## ----------------------------------------------------------------------- ## Wrapper function for MADlib's linear, logistic and multinomial ## logistic regressions ## ----------------------------------------------------------------------- setClass("logregr.madlib") setClass("logregr.madlib.grps") ## na.action is a ...
# set directory to the "UCI HAR Dataset" # setwd("UCI HAR Dataset") # read data train_data = read.table("train/X_train.txt") train_labels = read.table("train/y_train.txt") train_subjects = read.table("train/subject_train.txt") test_data = read.table("test/X_test.txt") test_labels = read.table("test/y_test.txt") test_s...
/3_getting_and_cleaning_data/run_analysis.R
no_license
kylec/datasciencecoursera
R
false
false
1,578
r
# set directory to the "UCI HAR Dataset" # setwd("UCI HAR Dataset") # read data train_data = read.table("train/X_train.txt") train_labels = read.table("train/y_train.txt") train_subjects = read.table("train/subject_train.txt") test_data = read.table("test/X_test.txt") test_labels = read.table("test/y_test.txt") test_s...
## read the file from wrking dir power_con_data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") ## get data into a dataframe only for two dates TwoDay <- power_con_data[(power_con_data$Date == "1/2/2007")|(power_con_data$Date == "2/2/2007"),] ## Convert Date column into Date cl...
/plot2.R
no_license
bharatnaruka/ExData_Plotting1
R
false
false
777
r
## read the file from wrking dir power_con_data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") ## get data into a dataframe only for two dates TwoDay <- power_con_data[(power_con_data$Date == "1/2/2007")|(power_con_data$Date == "2/2/2007"),] ## Convert Date column into Date cl...
\name{rare_phylo} \alias{rare_phylo} \alias{ser_phylo} \title{Phylogenetic Diversity Rarefaction Curves} \description{ \code{rare_phylo} calculates classic rarefaction curves using different indexes of phylogenetic diversity. \code{ser_phylo} calculates spatially-explicit rarefaction curves using different indexes o...
/man/rare_phylo.Rd
no_license
cran/Rarefy
R
false
false
8,962
rd
\name{rare_phylo} \alias{rare_phylo} \alias{ser_phylo} \title{Phylogenetic Diversity Rarefaction Curves} \description{ \code{rare_phylo} calculates classic rarefaction curves using different indexes of phylogenetic diversity. \code{ser_phylo} calculates spatially-explicit rarefaction curves using different indexes o...
source("hma_sign.R") source("tether.R") source("portafoglio.R") daily_check_part <- function(titoli, updateProgress=NULL){ signals <- c() #check_signal() for(i in 1:length(titoli)){ #for the UI progress bar if(is.function(updateProgress)){ text <- paste0("\ncurrently downloading and analysing ...
/checks.R
no_license
SolbiatiAlessandro/HERMes
R
false
false
5,023
r
source("hma_sign.R") source("tether.R") source("portafoglio.R") daily_check_part <- function(titoli, updateProgress=NULL){ signals <- c() #check_signal() for(i in 1:length(titoli)){ #for the UI progress bar if(is.function(updateProgress)){ text <- paste0("\ncurrently downloading and analysing ...
library(plsRglm) ### Name: summary.cv.plsRmodel ### Title: Summary method for plsR models ### Aliases: summary.cv.plsRmodel ### Keywords: methods print ### ** Examples data(Cornell) XCornell<-Cornell[,1:7] yCornell<-Cornell[,8] bbb <- cv.plsR(dataY=yCornell,dataX=XCornell,nt=10,K=6) summary(bbb) rm(list=c("XCornell...
/data/genthat_extracted_code/plsRglm/examples/summary.cv.plsRmodel.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
344
r
library(plsRglm) ### Name: summary.cv.plsRmodel ### Title: Summary method for plsR models ### Aliases: summary.cv.plsRmodel ### Keywords: methods print ### ** Examples data(Cornell) XCornell<-Cornell[,1:7] yCornell<-Cornell[,8] bbb <- cv.plsR(dataY=yCornell,dataX=XCornell,nt=10,K=6) summary(bbb) rm(list=c("XCornell...
### plot1 plot1 <- function() { hist(df$Global_active_power, main = paste("Global Active Power"), col="red", xlab="Global Active Power (kilowatts)") dev.copy(png, file="plot1.png", width=480, height=480) dev.off() cat("Plot1.png has been saved in", getwd()) } plot1()
/plot1.R
no_license
Feihelan/ExData_Plotting1
R
false
false
302
r
### plot1 plot1 <- function() { hist(df$Global_active_power, main = paste("Global Active Power"), col="red", xlab="Global Active Power (kilowatts)") dev.copy(png, file="plot1.png", width=480, height=480) dev.off() cat("Plot1.png has been saved in", getwd()) } plot1()
#setwd("C:/Users/km/Documents/Coursera_Mathhmata/R_Programming/specdata") fun3<-function(directory, threshold, id=(1:length(list.files(pattern="*.csv")))){ gg=length(id) tot<-data.frame( ID= integer(0), Obs = integer(0)) setwd(directory) corvector<- vector(mode="numeric", length=0) for(i in 1:gg){ ...
/corr.R
no_license
vassbar/R_programming
R
false
false
874
r
#setwd("C:/Users/km/Documents/Coursera_Mathhmata/R_Programming/specdata") fun3<-function(directory, threshold, id=(1:length(list.files(pattern="*.csv")))){ gg=length(id) tot<-data.frame( ID= integer(0), Obs = integer(0)) setwd(directory) corvector<- vector(mode="numeric", length=0) for(i in 1:gg){ ...
## This function is taken from John Kruschke's book, Doing Bayesian Data Analysis, 2nd ed. ## The functions in this book are available from his website: https://sites.google.com/site/doingbayesiandataanalysis/software-installation plotPost = function( paramSampleVec , cenTend=c("mode","median","mean")[1] , ...
/Code/Supplementary_Functions/plotPost.R
no_license
dylantuxsimpson/EC-SDMs
R
false
false
5,788
r
## This function is taken from John Kruschke's book, Doing Bayesian Data Analysis, 2nd ed. ## The functions in this book are available from his website: https://sites.google.com/site/doingbayesiandataanalysis/software-installation plotPost = function( paramSampleVec , cenTend=c("mode","median","mean")[1] , ...
#' Add a resample specification to a workflow #' #' @description #' - `add_resample()` specifies the type of resample used in the analysis. It #' accepts a function \code{.f} that will be applied to the data. Only #' functions which return an \code{rset} object will be allowed. See #' package \code{\link[rsample]...
/R/pre-action-resample.R
permissive
cimentadaj/workflows
R
false
false
4,257
r
#' Add a resample specification to a workflow #' #' @description #' - `add_resample()` specifies the type of resample used in the analysis. It #' accepts a function \code{.f} that will be applied to the data. Only #' functions which return an \code{rset} object will be allowed. See #' package \code{\link[rsample]...
# # Create models to enable assessment of # stereotyping and feature bias effects. # # Two types of models are created: # A-E: Models to assess stereotyping effects # P-S: Models to assess feature bias effects # # Models to assess stereotyping effects: # A. original feature set # B. original feature set - incom...
/02_models.R
no_license
vla6/Stereotyping_ROCDS
R
false
false
12,222
r
# # Create models to enable assessment of # stereotyping and feature bias effects. # # Two types of models are created: # A-E: Models to assess stereotyping effects # P-S: Models to assess feature bias effects # # Models to assess stereotyping effects: # A. original feature set # B. original feature set - incom...
#' @title Return roxygen parameter calls from parameter dictionary #' @description Return roxygen parameter calls from the intersection of the parameters listed in #' the package dictionary and the formals of a function #' @param obj function or name of function #' @param dictionary character, path_to_dictionary, Defa...
/R/ls_param.R
no_license
applied-statistic-using-r/sinew
R
false
false
1,342
r
#' @title Return roxygen parameter calls from parameter dictionary #' @description Return roxygen parameter calls from the intersection of the parameters listed in #' the package dictionary and the formals of a function #' @param obj function or name of function #' @param dictionary character, path_to_dictionary, Defa...
hello <- function( arg ) { return( arg^2 ) } bye <- function( arg ) { return( arg^3 ) } gutten_morgen <- function( arg ) { return( arg^4 + 132 ) }
/r_scripts/hello.R
no_license
MatteoLacki/Rproject_test
R
false
false
156
r
hello <- function( arg ) { return( arg^2 ) } bye <- function( arg ) { return( arg^3 ) } gutten_morgen <- function( arg ) { return( arg^4 + 132 ) }
# COVID model # epid function, which sets the initial conditions [based on parmlist] and calls the solver to run the model import::from('./covid_model_det.R', covid_model_det) ################################################################################################### # the epid function has one argument = the...
/src/app/model/epid.R
permissive
mishra-lab/covid-GTA-surge-planning
R
false
false
3,297
r
# COVID model # epid function, which sets the initial conditions [based on parmlist] and calls the solver to run the model import::from('./covid_model_det.R', covid_model_det) ################################################################################################### # the epid function has one argument = the...
## Discrete stochastic transmission model with unimdal vaccination uptake, two viruses, all-or-none protection # bfolder <- 'C:/Users/ifoppa/Documents/GitHub/' ## Define root path (where repository) bfolder <- 'C:/Users/vor1/Documents/GitHub/' ## Define root path (where repository) r10 <- 1.8 r20 <- 1.7 delta <- 1/4 ##...
/WIcode/SIR stochastic discrete 2 viruses all-or-none with unimodal vacc adj.R
no_license
ivofoppa/Waning-Immunity-artefact
R
false
false
3,973
r
## Discrete stochastic transmission model with unimdal vaccination uptake, two viruses, all-or-none protection # bfolder <- 'C:/Users/ifoppa/Documents/GitHub/' ## Define root path (where repository) bfolder <- 'C:/Users/vor1/Documents/GitHub/' ## Define root path (where repository) r10 <- 1.8 r20 <- 1.7 delta <- 1/4 ##...
library(deaR) ### Name: read_malmquist ### Title: read_malmquist ### Aliases: read_malmquist ### ** Examples # Example 1. If you have a dataset in wide format. data("Economy") data_example <- read_malmquist(datadea = Economy, nper = 5, arrangement = "h...
/data/genthat_extracted_code/deaR/examples/read_malmquist.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
990
r
library(deaR) ### Name: read_malmquist ### Title: read_malmquist ### Aliases: read_malmquist ### ** Examples # Example 1. If you have a dataset in wide format. data("Economy") data_example <- read_malmquist(datadea = Economy, nper = 5, arrangement = "h...
# package reshape has cast() and melt(); ggplot2 is the graphing package. library(reshape) library(ggplot2) # read in the csv data grocery <- read.csv("~/Dropbox/pdffiles/umd-jessy-jon/data/mturk/batch_777316and780910_grocery.csv") # grab what we care about for now, and clean the data: get rid of NA values # (only k...
/grocery-batch-analysis.R
no_license
smartinsightsfromdata/urbanprediction
R
false
false
5,207
r
# package reshape has cast() and melt(); ggplot2 is the graphing package. library(reshape) library(ggplot2) # read in the csv data grocery <- read.csv("~/Dropbox/pdffiles/umd-jessy-jon/data/mturk/batch_777316and780910_grocery.csv") # grab what we care about for now, and clean the data: get rid of NA values # (only k...
#plot3.R #Reading File and Subset data <- read.table("household_power_consumption.txt", header=TRUE, stringsAsFactors=FALSE, dec=".", sep = ";") sub <- data[data$Date %in% c("1/2/2007", "2/2/2007"),] #Plotting sub$Sub_metering_1 <- as.numeric(sub$Sub_metering_1) sub$Sub_metering_2 <- as.numeric(sub$Sub_metering_2) sub...
/plot3.R
no_license
amo3tasem/ExData_Plotting1
R
false
false
788
r
#plot3.R #Reading File and Subset data <- read.table("household_power_consumption.txt", header=TRUE, stringsAsFactors=FALSE, dec=".", sep = ";") sub <- data[data$Date %in% c("1/2/2007", "2/2/2007"),] #Plotting sub$Sub_metering_1 <- as.numeric(sub$Sub_metering_1) sub$Sub_metering_2 <- as.numeric(sub$Sub_metering_2) sub...
library(DESeq2) library(data.table) # To convert row names into first column # Requirements: # -coldata_file can't have a column name called "final_sample_name" # # Inputs: # -counts_matrix_file: A file with format: # id RS_1.10 RS_1.11 RS_1.12 # ENSG00000000003 36.0 745.0 361.0 ...
/scripts/R_collapseReps.R
permissive
IanSudbery/alvarez_et_al
R
false
false
6,582
r
library(DESeq2) library(data.table) # To convert row names into first column # Requirements: # -coldata_file can't have a column name called "final_sample_name" # # Inputs: # -counts_matrix_file: A file with format: # id RS_1.10 RS_1.11 RS_1.12 # ENSG00000000003 36.0 745.0 361.0 ...
/SagaTV.R
no_license
OmarGonD/ecommerce-peru
R
false
false
9,927
r
#' @title Medical Expenses #' #' @description #' Predicting medical expenses #' #' @source #' From \href{https://www.packtpub.com/product/machine-learning-with-r/9781782162148}{Machine Learning in R by Brett Lantz}. Data downloaded #' from \href{https://github.com/stedy/Machine-Learning-with-R-datasets}{GitHub}. #' #...
/R/insurance.R
permissive
Rkabacoff/qacData
R
false
false
1,277
r
#' @title Medical Expenses #' #' @description #' Predicting medical expenses #' #' @source #' From \href{https://www.packtpub.com/product/machine-learning-with-r/9781782162148}{Machine Learning in R by Brett Lantz}. Data downloaded #' from \href{https://github.com/stedy/Machine-Learning-with-R-datasets}{GitHub}. #' #...
ggplot() + geom_line(data = fares1, aes(x = time, y = fares_no, colour = "blue")) + geom_line(data = fares_clean, aes(x = time, y = fares_no, colour = "red")) ts.plot(ts(fares1$fares_no, frequency = 7), ts(fares_clean$fares_no, frequency = 7), gpars = list(col = c("black", "red"))) plot(stl(ts(fares_clean$fares...
/222.R
no_license
kodab89/pracaZalSGH
R
false
false
541
r
ggplot() + geom_line(data = fares1, aes(x = time, y = fares_no, colour = "blue")) + geom_line(data = fares_clean, aes(x = time, y = fares_no, colour = "red")) ts.plot(ts(fares1$fares_no, frequency = 7), ts(fares_clean$fares_no, frequency = 7), gpars = list(col = c("black", "red"))) plot(stl(ts(fares_clean$fares...
# create a time series data #first create a vector of numerical values # 36 observations set.seed(1235) (sales = round(runif(36, 0,100))) length(sales) #This data can be daily, weekly, monthly, quarter, yearly data #create yearly time series : start year 1980 #Yearly---- (ysales = ts(sales, frequency = 1)) plot(ysa...
/TimeSeries.R
no_license
esranjith/First
R
false
false
1,753
r
# create a time series data #first create a vector of numerical values # 36 observations set.seed(1235) (sales = round(runif(36, 0,100))) length(sales) #This data can be daily, weekly, monthly, quarter, yearly data #create yearly time series : start year 1980 #Yearly---- (ysales = ts(sales, frequency = 1)) plot(ysa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/help_console.R \name{help_console} \alias{help_console} \title{Print help file into console} \usage{ help_console( topic, package = "replicationOrigins", format = c("text", "html", "latex", "Rd"), before = NULL, after = NULL ) } \ar...
/man/help_console.Rd
no_license
rjaksik/replicationOrigins
R
false
true
1,104
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/help_console.R \name{help_console} \alias{help_console} \title{Print help file into console} \usage{ help_console( topic, package = "replicationOrigins", format = c("text", "html", "latex", "Rd"), before = NULL, after = NULL ) } \ar...
library(shiny) library(plotly) library(shinyjs) library(ggplot2) ui <- fluidPage( includeCSS("custom.css"), useShinyjs(), fluidRow( column(8, titlePanel("Tunnel Goal Fitts Tests (Cohort 2021)")), column( 4, column(1, style = "margin-top : 20px; text-align: right;", icon("user", class = "fa-2x...
/ui.R
permissive
med-material/TunnelGoalFittsRShiny
R
false
false
5,342
r
library(shiny) library(plotly) library(shinyjs) library(ggplot2) ui <- fluidPage( includeCSS("custom.css"), useShinyjs(), fluidRow( column(8, titlePanel("Tunnel Goal Fitts Tests (Cohort 2021)")), column( 4, column(1, style = "margin-top : 20px; text-align: right;", icon("user", class = "fa-2x...
#This script estimates a linear model using the model data table dir.data<-"/Users/andreasb/Documents/GitHub/Climate-Change-and-AI/Data/Model/" data<-read.csv(paste0(dir.data,"ModelData.csv")) ##let's look at the data first, dim(data) #194 renglones -> 193 países #77 variables summary(data) #Hay variables que no t...
/Class Projects/Codigo Evidencia.r
no_license
AndreaSB11/Climate-Change-and-AI
R
false
false
5,560
r
#This script estimates a linear model using the model data table dir.data<-"/Users/andreasb/Documents/GitHub/Climate-Change-and-AI/Data/Model/" data<-read.csv(paste0(dir.data,"ModelData.csv")) ##let's look at the data first, dim(data) #194 renglones -> 193 países #77 variables summary(data) #Hay variables que no t...
get_info_links_network<-function(f_list_dataset,dir_data,list_gene_ens,info_gene_pln) { get_max_info_link<-function(index,info_gene_pln,info_pln_ind) { gene1<-as.character(info_gene_pln$V1[index]) gene2<-as.character(info_gene_pln$V2[index]) index_pair1<-which(info_pln_ind$V1==gene1 & info_pln_ind$V2==ge...
/PLN/get_info_links_network.R
no_license
csandorfr/Workshop-Functional-Genomics-DRI
R
false
false
1,538
r
get_info_links_network<-function(f_list_dataset,dir_data,list_gene_ens,info_gene_pln) { get_max_info_link<-function(index,info_gene_pln,info_pln_ind) { gene1<-as.character(info_gene_pln$V1[index]) gene2<-as.character(info_gene_pln$V2[index]) index_pair1<-which(info_pln_ind$V1==gene1 & info_pln_ind$V2==ge...
# appWindow demo from GTK window <- NULL # define some callbacks activate.radio.action <- function(action, current) { name <- action$getName() typename <- class(action)[1] value <- current$getCurrentValue() if (current$getActive()) { text <- sprintf("You activated radio action: \"%s\" of type ...
/RGtk2/demo/appWindow.R
no_license
lawremi/RGtk2
R
false
false
8,180
r
# appWindow demo from GTK window <- NULL # define some callbacks activate.radio.action <- function(action, current) { name <- action$getName() typename <- class(action)[1] value <- current$getCurrentValue() if (current$getActive()) { text <- sprintf("You activated radio action: \"%s\" of type ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/io.R \name{catNewLineIf} \alias{catNewLineIf} \title{Print New Line Character to the Console if Condition is Met} \usage{ catNewLineIf(condition) } \arguments{ \item{condition}{if \code{TRUE} the new line is printed else not} } \value{ Return...
/man/catNewLineIf.Rd
permissive
KWB-R/kwb.utils
R
false
true
450
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/io.R \name{catNewLineIf} \alias{catNewLineIf} \title{Print New Line Character to the Console if Condition is Met} \usage{ catNewLineIf(condition) } \arguments{ \item{condition}{if \code{TRUE} the new line is printed else not} } \value{ Return...
## Set working directory getwd() setwd("C:/Users/Calli6/Desktop/Exploratory Data Analysis") ## Download zip file and unzip in working directory dataset_url <-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(dataset_url, "household_power_consumption.zip") unzip("hous...
/ExData_Plotting1/plot4.R
no_license
calli6/ExData_Plotting1
R
false
false
3,100
r
## Set working directory getwd() setwd("C:/Users/Calli6/Desktop/Exploratory Data Analysis") ## Download zip file and unzip in working directory dataset_url <-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(dataset_url, "household_power_consumption.zip") unzip("hous...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/button.R \name{action_button} \alias{action_button} \alias{actionButton} \title{Action button} \usage{ action_button(input_id, label, icon = NULL, width = NULL, ...) actionButton(inputId, label, icon = NULL, width = NULL, ...) } \arguments{ ...
/man/action_button.Rd
permissive
Appsilon/shiny.semantic
R
false
true
1,212
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/button.R \name{action_button} \alias{action_button} \alias{actionButton} \title{Action button} \usage{ action_button(input_id, label, icon = NULL, width = NULL, ...) actionButton(inputId, label, icon = NULL, width = NULL, ...) } \arguments{ ...
c63dd294be503baed9640fdba2193a1f gttt_2_1_001020_4x4_torus_b.qdimacs 10700 26347
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gttt_2_1_001020_4x4_torus_b/gttt_2_1_001020_4x4_torus_b.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
80
r
c63dd294be503baed9640fdba2193a1f gttt_2_1_001020_4x4_torus_b.qdimacs 10700 26347
context("ZDP Tests") test_that("Test Iteration Errors", { set.seed(1) n<-200 ## generate from clustered, skewed, data distribution d <- data.frame(y = rnorm(n), x = rnorm(n)) d$y[1:30] <- 0 expect_error( ZDPMix(d_train = d, formula = y ~ x, burnin=200, iter=100) ) expect_error( ZDPMix(d_train = d, formula...
/tests/testthat/test_zdp.r
permissive
stablemarkets/ChiRP
R
false
false
3,020
r
context("ZDP Tests") test_that("Test Iteration Errors", { set.seed(1) n<-200 ## generate from clustered, skewed, data distribution d <- data.frame(y = rnorm(n), x = rnorm(n)) d$y[1:30] <- 0 expect_error( ZDPMix(d_train = d, formula = y ~ x, burnin=200, iter=100) ) expect_error( ZDPMix(d_train = d, formula...
library(ggplot2) library(ggthemes) library(plyr) GetPercentLabels <-function(val, digits = 0){ pr<- paste(round(val, digits), "%") return(pr) } #on crée une fonction pourcentage afin de faciliter le calcule de pourcentage pourcentage<- function(tableau, sub){ pr<- round((nrow(sub)*100)/nrow(tableau), digits = 2...
/17:04-23:04.R
permissive
rico237/ter-ove-2017
R
false
false
3,415
r
library(ggplot2) library(ggthemes) library(plyr) GetPercentLabels <-function(val, digits = 0){ pr<- paste(round(val, digits), "%") return(pr) } #on crée une fonction pourcentage afin de faciliter le calcule de pourcentage pourcentage<- function(tableau, sub){ pr<- round((nrow(sub)*100)/nrow(tableau), digits = 2...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mylatex.R \name{mylatex} \alias{mylatex} \alias{mylatex.cbind.mytable} \alias{mylatex.default} \alias{mylatex.mytable} \title{Exporting "cbind.mytable","mytable" to LaTeX format} \usage{ mylatex(myobj, size = 5, caption = NULL, captio...
/man/mylatex.Rd
no_license
shanmdphd/moonBook
R
false
false
1,647
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mylatex.R \name{mylatex} \alias{mylatex} \alias{mylatex.cbind.mytable} \alias{mylatex.default} \alias{mylatex.mytable} \title{Exporting "cbind.mytable","mytable" to LaTeX format} \usage{ mylatex(myobj, size = 5, caption = NULL, captio...
library(ape) testtree <- read.tree("4511_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4511_0_unrooted.txt")
/codeml_files/newick_trees_processed/4511_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4511_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4511_0_unrooted.txt")
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/scale-tufte.R \name{smart_digits} \alias{smart_digits} \alias{smart_digits_format} \title{Format numbers with automatic number of digits} \usage{ smart_digits(x, ...) smart_digits_format(x, ...) } \arguments{ \item{x}{A numeric vecto...
/man/smart_digits.Rd
no_license
nishantsbi/ggthemes
R
false
false
850
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/scale-tufte.R \name{smart_digits} \alias{smart_digits} \alias{smart_digits_format} \title{Format numbers with automatic number of digits} \usage{ smart_digits(x, ...) smart_digits_format(x, ...) } \arguments{ \item{x}{A numeric vecto...
source('~/projects/20190423_courseraDatascienceCapstone/file_reading.R') source('~/projects/20190423_courseraDatascienceCapstone/model_testing.R') set.seed(123) lines <- readWholeFile('.//data//final//en_US//en_US.twitter.txt') #split train and test lines <- sample(lines) splitIndex <- floor(length(lines) * 0.2) te...
/build_and_test.R
no_license
tim-fan/coursera_datascience_capstone
R
false
false
2,344
r
source('~/projects/20190423_courseraDatascienceCapstone/file_reading.R') source('~/projects/20190423_courseraDatascienceCapstone/model_testing.R') set.seed(123) lines <- readWholeFile('.//data//final//en_US//en_US.twitter.txt') #split train and test lines <- sample(lines) splitIndex <- floor(length(lines) * 0.2) te...
##' @title Capitalize string for use in rdfs definitions (not good version) ##' @param s input string ##' @param strict if all character should be capitalized ##' @return s capitalized ##' @export capitalize <- function(s, strict = FALSE) { # suggested R online help /library/base/html/chartr.html cap <- function(s...
/rrdfqbcrnd0/R/capitalize.R
no_license
rjsheperd/rrdfqbcrnd0
R
false
false
561
r
##' @title Capitalize string for use in rdfs definitions (not good version) ##' @param s input string ##' @param strict if all character should be capitalized ##' @return s capitalized ##' @export capitalize <- function(s, strict = FALSE) { # suggested R online help /library/base/html/chartr.html cap <- function(s...
# Functions # # - are the basic building block of most programming languages # - are used to gather a sequence of operations into a whole, preserving it for ongoing use. # - have names that we can remember and call # - have a defined set of inputs and expected outputs # - provide connections to the larger programming e...
/02-functions.R
no_license
nairps/SWC-R-Workshop-USDA
R
false
false
11,241
r
# Functions # # - are the basic building block of most programming languages # - are used to gather a sequence of operations into a whole, preserving it for ongoing use. # - have names that we can remember and call # - have a defined set of inputs and expected outputs # - provide connections to the larger programming e...
library(acepack) library(minerva) library(kernlab) library(energy) computeKernelMatrix <- function(sample) { n <- nrow(sample) Q <- matrix(apply(sample^2, 1, sum), n, n) distance <- Q + t(Q) - 2 * sample %*% t(sample) exp(-sigest(sample,scale=NULL)[2]*distance) } hsic <- function(sampleX, sampleY) {...
/code/algorithms.r
no_license
lopezpaz/randomized_dependence_coefficient
R
false
false
1,104
r
library(acepack) library(minerva) library(kernlab) library(energy) computeKernelMatrix <- function(sample) { n <- nrow(sample) Q <- matrix(apply(sample^2, 1, sum), n, n) distance <- Q + t(Q) - 2 * sample %*% t(sample) exp(-sigest(sample,scale=NULL)[2]*distance) } hsic <- function(sampleX, sampleY) {...
# reference from youtube # https://www.youtube.com/channel/UC0Amh8UkHvIVxPbxsrEBRMg # load packages library(quantmod) library(PerformanceAnalytics) # Stock watch list -------------------------------------------------------- # a collection of stocks mystocks <- c("GE", "JNJ", "MSFT", "WMT", "GS", "SBUX", "ZM", "^DJI")...
/StocksWatch/template_dayTrader_naive_signal_MSFT.R
no_license
PyRPy/TimeSeries_R
R
false
false
2,934
r
# reference from youtube # https://www.youtube.com/channel/UC0Amh8UkHvIVxPbxsrEBRMg # load packages library(quantmod) library(PerformanceAnalytics) # Stock watch list -------------------------------------------------------- # a collection of stocks mystocks <- c("GE", "JNJ", "MSFT", "WMT", "GS", "SBUX", "ZM", "^DJI")...
source('library/boot.R') source('models/naive_model_1.R') source('models/naive_model_2.R') source('models/naive_model_3.R') source('models/naive_model_4.R') source('models/naive_model_5.R') source('models/naive_model_6.R') source('models/naive_model_7.R') source('models/naive_model_8.R') source('models/naive_model_9.R...
/run_all.R
no_license
johnmyleswhite/analytics_x_prize
R
false
false
394
r
source('library/boot.R') source('models/naive_model_1.R') source('models/naive_model_2.R') source('models/naive_model_3.R') source('models/naive_model_4.R') source('models/naive_model_5.R') source('models/naive_model_6.R') source('models/naive_model_7.R') source('models/naive_model_8.R') source('models/naive_model_9.R...
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test Event") model.instance <- Event$new() test_that("additionalInfo", { # tests for the property `additionalInfo` (map(character)) # Additional arbitrary info # uncomment below to t...
/tests/testthat/test_event.R
no_license
Breeding-Insight/brapi-r-v2
R
false
false
3,064
r
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test Event") model.instance <- Event$new() test_that("additionalInfo", { # tests for the property `additionalInfo` (map(character)) # Additional arbitrary info # uncomment below to t...
mloop <- function(cx=0,cy=0,retention=0.2,b.x=0.6,b.y=0.8,n=1,m=1,sd.x=0,sd.y=0,phase.angle=0,n.points=24,period=24,extended.classical=FALSE,seed=NULL) { if (!is.null(seed)) set.seed(seed) if (extended.classical==FALSE) { x<-cx+b.x*cos((1:n.points)/period*2*pi+phase.angle/180*pi)+rnorm(n.points,0,sd.x) y<-cy+...
/hysteresis/R/mloop.r
no_license
ingted/R-Examples
R
false
false
1,584
r
mloop <- function(cx=0,cy=0,retention=0.2,b.x=0.6,b.y=0.8,n=1,m=1,sd.x=0,sd.y=0,phase.angle=0,n.points=24,period=24,extended.classical=FALSE,seed=NULL) { if (!is.null(seed)) set.seed(seed) if (extended.classical==FALSE) { x<-cx+b.x*cos((1:n.points)/period*2*pi+phase.angle/180*pi)+rnorm(n.points,0,sd.x) y<-cy+...
######################################################################### ######################################################################### ############### PREPARE DATA FOR IMPUTATION PROCESS ##################### ######################################################################### ########################...
/AnalysisBIPW/022_make_ipdata_utils.R
no_license
laasousa/IPW
R
false
false
5,675
r
######################################################################### ######################################################################### ############### PREPARE DATA FOR IMPUTATION PROCESS ##################### ######################################################################### ########################...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 12371 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11948 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11948 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Seidl/ASP_Program_Inclusion/S-edau-26/S-edau-26.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
2,490
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 12371 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11948 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11948 c c Input Parameter (command line, ...
## Mahalanobis HCA with parallel clustering of apriori clusters. # prepare demo data set.seed(1) # number of samples in each apriori cluster n1<-1000 # number of apriori clusters m<-20 x<-matrix(NA,n1*m,2) for (i in 1:m) { x[(i-1)*n1+(1:n1),1]<-rnorm(n1)/runif(1,.2,5)+runif(1,-15,15) x[(i-1)*n1+(1:n1),2]<-rnor...
/demo/parallel.R
no_license
tsieger/mhca
R
false
false
596
r
## Mahalanobis HCA with parallel clustering of apriori clusters. # prepare demo data set.seed(1) # number of samples in each apriori cluster n1<-1000 # number of apriori clusters m<-20 x<-matrix(NA,n1*m,2) for (i in 1:m) { x[(i-1)*n1+(1:n1),1]<-rnorm(n1)/runif(1,.2,5)+runif(1,-15,15) x[(i-1)*n1+(1:n1),2]<-rnor...
############################# ### FIND A "TYPICAL" TREE ### ############################# # Required packages: dplyr, tidyr, grf, DiagrammeR # This function is meant to help visualizing random forests by finding a "typical" tree. # Its output does *not* have any deeper statistical meaning. # The "typical" tree of ...
/Function.R
no_license
BernhardClemm/typical-tree-grf
R
false
false
3,227
r
############################# ### FIND A "TYPICAL" TREE ### ############################# # Required packages: dplyr, tidyr, grf, DiagrammeR # This function is meant to help visualizing random forests by finding a "typical" tree. # Its output does *not* have any deeper statistical meaning. # The "typical" tree of ...
context("trip-extract") library(trip) data("walrus818") set.seed(1) d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5)) context("trip-prep-1") coordinates(d) <- ~x+y proj4string(d) <- CRS("+proj=laea +ellps=sphere") tr <- trip(d, c("tms", "id")) context("trip-prep-2") tr$tms <- ISOdatetime(2006...
/tests/testthat/test-trip-extract.R
no_license
bootneck2000/raadtools
R
false
false
919
r
context("trip-extract") library(trip) data("walrus818") set.seed(1) d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5)) context("trip-prep-1") coordinates(d) <- ~x+y proj4string(d) <- CRS("+proj=laea +ellps=sphere") tr <- trip(d, c("tms", "id")) context("trip-prep-2") tr$tms <- ISOdatetime(2006...
rm(list=ls()) # library(MCMCpack) # #DATA # #size of poll ns = list() ns[['Iowa']] = 1689 ns[['Florida']] = 625 ns[['Michigan']] = 600 ns[['Nevada']] = 1505 ns[['NewHampshire']] = 2223 ns[['Virginia']] = 625 ns[['Wisconsin']] = 800 ns[['NorthCarolina']] = 1504 #poling probabilities (candiate, trump, other) p = lis...
/02082020/sim.r
no_license
gasduster99/primaryConcerns
R
false
false
6,598
r
rm(list=ls()) # library(MCMCpack) # #DATA # #size of poll ns = list() ns[['Iowa']] = 1689 ns[['Florida']] = 625 ns[['Michigan']] = 600 ns[['Nevada']] = 1505 ns[['NewHampshire']] = 2223 ns[['Virginia']] = 625 ns[['Wisconsin']] = 800 ns[['NorthCarolina']] = 1504 #poling probabilities (candiate, trump, other) p = lis...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/kclass.R \name{kclass.fit} \alias{kclass.fit} \title{Low-level kclass instrumental variables function.} \usage{ kclass.fit(x, y, z = NULL, weights = NULL, offset = NULL, k = NULL, alpha = NULL, model.type = c("TSLS", "LIML", "FULLER...
/man/kclass.fit.Rd
no_license
potterzot/rkclass
R
false
false
1,320
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/kclass.R \name{kclass.fit} \alias{kclass.fit} \title{Low-level kclass instrumental variables function.} \usage{ kclass.fit(x, y, z = NULL, weights = NULL, offset = NULL, k = NULL, alpha = NULL, model.type = c("TSLS", "LIML", "FULLER...
##Read the data from the text file into R hp <- readtable("hp.txt", header = TRUE, sep = ";") ##Subset to only the rows that are over the time period we're looking at hpnew <- hp[66637:69516,] ##Create a new column that combines the date and Time variables hpnew$Date.Time <- paste(hpnew$Date, hpnew$Time) ## Format the ...
/baser/plot4.R
no_license
robertncrampton/ExData_Plotting1
R
false
false
979
r
##Read the data from the text file into R hp <- readtable("hp.txt", header = TRUE, sep = ";") ##Subset to only the rows that are over the time period we're looking at hpnew <- hp[66637:69516,] ##Create a new column that combines the date and Time variables hpnew$Date.Time <- paste(hpnew$Date, hpnew$Time) ## Format the ...
#' TensorFlow for R #' #' \href{https://www.tensorflow.org}{TensorFlow} is an open source software library #' for numerical computation using data flow graphs. Nodes in the graph #' represent mathematical operations, while the graph edges represent the #' multidimensional data arrays (tensors) communicated between the...
/R/package.R
permissive
maraneane/tensorflow
R
false
false
7,103
r
#' TensorFlow for R #' #' \href{https://www.tensorflow.org}{TensorFlow} is an open source software library #' for numerical computation using data flow graphs. Nodes in the graph #' represent mathematical operations, while the graph edges represent the #' multidimensional data arrays (tensors) communicated between the...
## archivist package for R ## #' @title Create an Empty Repository #' #' @description #' \code{createLocalRepo} creates an empty \link{Repository} in the given directory in which archived artifacts will be stored. #' #' @details #' At least one Repository must be initialized before using other functions from the \p...
/R/createEmptyRepo.R
no_license
pbiecek/archivist
R
false
false
10,492
r
## archivist package for R ## #' @title Create an Empty Repository #' #' @description #' \code{createLocalRepo} creates an empty \link{Repository} in the given directory in which archived artifacts will be stored. #' #' @details #' At least one Repository must be initialized before using other functions from the \p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mich_2015.R \docType{data} \name{mich_2015} \alias{mich_2015} \title{Computos distritales for 2015 state election} \format{ An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 5790 rows and ...
/man/mich_2015.Rd
permissive
SrChucho/quickcountmx
R
false
true
519
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mich_2015.R \docType{data} \name{mich_2015} \alias{mich_2015} \title{Computos distritales for 2015 state election} \format{ An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 5790 rows and ...
library(PharmacoGx) context("Checking summarizeSensitivityProfiles function.") data("GDSCsmall") test_that("Summarize Sensitivity Profiles fails gracefully.", { expect_error(summarizeSensitivityProfiles(), "argument \"pSet\" is missing") }) test_that("Summarize Sensitivity Profiles function outputs data with ri...
/tests/testthat/test_summarizeSensitivityProfiles.R
no_license
flywind2/PharmacoGx
R
false
false
2,464
r
library(PharmacoGx) context("Checking summarizeSensitivityProfiles function.") data("GDSCsmall") test_that("Summarize Sensitivity Profiles fails gracefully.", { expect_error(summarizeSensitivityProfiles(), "argument \"pSet\" is missing") }) test_that("Summarize Sensitivity Profiles function outputs data with ri...
testlist <- list(a = 0L, b = 0L, x = c(2071658619L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071658751L, -1L, 1575944192L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610132028-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
532
r
testlist <- list(a = 0L, b = 0L, x = c(2071658619L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071690107L, 2071658751L, -1L, 1575944192L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
Zero <- function(x){ x[is.na(x)] <- 0 x }
/impute/Zero.R
no_license
wonderchang/bio-impute
R
false
false
46
r
Zero <- function(x){ x[is.na(x)] <- 0 x }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fbind.R \name{fbind} \alias{fbind} \title{Bind two factors} \usage{ fbind(a, b) } \arguments{ \item{a}{factor} \item{b}{factor} } \value{ factor } \description{ Create a new factor from two existing factors, where the new factor's levels are...
/man/fbind.Rd
permissive
gronert-m/foofactors_2
R
false
true
567
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fbind.R \name{fbind} \alias{fbind} \title{Bind two factors} \usage{ fbind(a, b) } \arguments{ \item{a}{factor} \item{b}{factor} } \value{ factor } \description{ Create a new factor from two existing factors, where the new factor's levels are...
context('Genotype evaluation in some specific situations') test_that("Example VCF", { calls.gr = readSVvcf('../example-calls.vcf', min.sv.size=2) truth.gr = readSVvcf('../example-truth.vcf', min.sv.size=2) res = svevalOl(calls.gr, truth.gr, geno.eval=TRUE, min.size=2, merge.hets=FALSE, stitch.he...
/tests/testthat/test_svevalol_geno_example.R
permissive
jmonlong/sveval
R
false
false
573
r
context('Genotype evaluation in some specific situations') test_that("Example VCF", { calls.gr = readSVvcf('../example-calls.vcf', min.sv.size=2) truth.gr = readSVvcf('../example-truth.vcf', min.sv.size=2) res = svevalOl(calls.gr, truth.gr, geno.eval=TRUE, min.size=2, merge.hets=FALSE, stitch.he...