R/statistics.R
strsplit2.Rd
Split Composite Names
strsplit2(x, split, colnames = NULL, ...)
character vector
character to split each element of vector on, see strsplit
strsplit
colnames for the result
other arguments are passed to strsplit
data.frame
strsplit2(c("a;b", "c;d"), ";", colnames = c("col1", "col2")) #> col1 col2 #> 1 a b #> 2 c d