split_expand | R Documentation |
Split One Column and Expand
split_expand(data, variable, sep)
data |
dataframe or matrix |
variable |
one column name with connected values |
sep |
seperated symbol, which can be one or more |
expanded dataframe or matrix
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=';')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.