Explode a data.frame if there are split charter in one column

explode(df, column, split = ",")

Arguments

df

data.frame

column

column

split

split string

Value

data.frame

Examples

# \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
# }