R/strsplit.R

Defines functions strsplit2

#' @export
strsplit2 <-function(x, split=" ", n=1, ...)
 # from Chris Stubben's genomes2 package modified by Jean Elbers
 # https://github.com/cstubben/genomes2/blob/master/R/strsplit2.R
{
  y <- strsplit(as.character( x), split=split, ...)
  sapply(y, "[", n=n)
}
jelber2/rGO2TR documentation built on Feb. 22, 2024, 12:50 p.m.