R/statistics.R
explode.Rd
Explode a data.frame if there are split charter in one column
explode(df, column, split = ",")
data.frame
column
split string
# \donttest{ df <- data.frame(a = 1:2, b = c("a,b", "c"), c = 3:4) explode(df, "b", ",") #> a b c #> 1 1 a 3 #> 2 1 b 3 #> 3 2 c 4 # }