Вы имеете в виду это?
library(splitstackshape)
library(dplyr)
df %>%
cSplit("column", ",")
Вывод:
column_1 column_2 column_3
1: apple juice guava-peach juice melon apple juice
2: orange juice pineapple strawberry lemon juice <NA>
Пример данных:
df <- structure(list(column = structure(1:2, .Label = c("apple juice,guava-peach juice,melon apple juice",
"orange juice,pineapple strawberry lemon juice"), class = "factor")), .Names = "column", row.names = c(NA,
-2L), class = "data.frame")