powered by
Split Composite Names
strsplit2(x, split, colnames = NULL, ...)
data.frame
character vector
character to split each element of vector on, see strsplit
strsplit
colnames for the result
other arguments are passed to strsplit
strsplit2(c("a;b", "c;d"), ";", colnames = c("col1", "col2"))
Run the code above in your browser using DataLab