R/patternCheck.R

Defines functions patternCheck

## Function to create tags for improperly formatted sample characteristics (missing a ':')
patternCheck <- function(y){
  t <- unlist(strsplit(y,";;"))
  indx <-  setdiff(1:length(t),grep(":",t))
  for (i in (1:length(indx))) t[indx[i]] <- paste0("tag",i,":",t[indx[i]])
  paste0(t,collapse=";;")
}

Try the compendiumdb package in your browser

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

compendiumdb documentation built on May 2, 2019, 4:06 p.m.