Description Usage Arguments Value Author(s) See Also Examples
Takes a column in a data.frame
or data.table
with multiple values, splits
the values into a list
, and returns a new data.frame
or data.table
.
1 |
data |
The source |
split.col |
The variable that needs to be split (either name or index position). |
sep |
The character separating each value. Can also be a regular expression. |
drop |
Logical. Should the original variable be dropped? Defaults to |
fixed |
Used for |
A data.frame
or data.table
with the concatenated column split and
added as a list
.
Ananda Mahto
1 2 3 4 5 6 7 8 | temp <- head(concat.test)
str(cSplit_l(temp, "Likes"))
cSplit_l(temp, 4, ";")
## The old function name still works
str(concat.split.list(temp, "Likes"))
concat.split.list(temp, 4, ";")
concat.split.list(temp, 4, ";", drop = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.