explode {pcutils}R Documentation

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 = ",")

Arguments

df

data.frame

column

column

split

split string

Value

data.frame

Examples


df <- data.frame(a = 1:2, b = c("a,b", "c"), c = 3:4)
explode(df, "b", ",")


[Package pcutils version 0.2.6 Index]