Learn R Programming

pcutils (version 0.2.8)

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

Description

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

Usage

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

Value

data.frame

Arguments

df

data.frame

column

column

split

split string

Examples

Run this code
# \donttest{
df <- data.frame(a = 1:2, b = c("a,b", "c"), c = 3:4)
explode(df, "b", ",")
# }

Run the code above in your browser using DataLab