powered by
paste2
colSplit(column, col.sep = ".", name.sep = "&")
colsplit2df
foo1 <- paste2(CO2[, 1:3]) head(foo1, 12) bar1 <- colSplit(foo1) head(bar1, 10) foo2 <- paste2(mtcars[, 1:3], sep="|") head(foo2, 12) bar2 <- colSplit(foo2, col.sep = "|") head(bar2, 10)
Run the code above in your browser using DataLab