R/helperMakePairs.R

Defines functions helperMakePairs

helperMakePairs <- function(data){
colNames <- colnames(data)

seqVec <- seq_along(colNames)
colGroups <- vapply(seqVec, function(i){
    strsplit(colNames[i],"[.]")[[1]][1]
}, character(1))

myPairs <- unique(colGroups)
if ("ID" %in% colNames){
    myPairs <- myPairs[-which(myPairs=="ID")] 
}
return(list(myPairs = myPairs, colGroups = colGroups))
}

Try the bigPint package in your browser

Any scripts or data that you put into this service are public.

bigPint documentation built on Nov. 8, 2020, 5:07 p.m.