split_expand: Split One Column and Expand

Description Usage Arguments Value Examples

View source: R/split_expand.R

Description

Split One Column and Expand

Usage

1
split_expand(data, variable, sep)

Arguments

data

dataframe or matrix

variable

one column name with connected values

sep

seperated symbol, which can be one or more

Value

expanded dataframe or matrix

Examples

1
2
3
4
5
df=data.frame(a=c(1,0),
              b=c('a','n'),
           cyl=c('6;6;4;4;4',
                 '6;8;'))
split_expand(data=df,variable='cyl',sep=';')

do documentation built on July 16, 2021, 9:08 a.m.