| concat.split.compact {splitstackshape} | R Documentation |
Split Concatenated Cells into a Condensed Format
Description
The default splitting method for concat.split. Formerly based on
read.concat() but presently a simple wrapper around cSplit().
Usage
concat.split.compact(data, split.col, sep = ",", drop = FALSE,
fixed = TRUE, ...)
Arguments
data |
The input |
split.col |
The column that need to be split. |
sep |
The character separating each value. |
drop |
Logical. Should the original variable be dropped? Defaults to
|
fixed |
Logical. Should the split character be treated as a fixed
pattern ( |
... |
optional arguments to pass to |
Value
A data.table.
Note
THIS FUNCTION IS DEPRECATED AND WILL BE REMOVED FROM LATER VERSIONS OF
"SPLITSTACKSHAPE". It no longer does anything different from cSplit(). It is
recommended that you transition your code to the cSplit function instead.
Author(s)
Ananda Mahto
See Also
Examples
## Not run:
temp <- head(concat.test)
concat.split.compact(temp, "Likes")
concat.split.compact(temp, 4, ";")
## Extra arguments to cSplit
concat.split.compact(temp, "Siblings", drop = TRUE, stripWhite = TRUE)
## End(Not run)
[Package splitstackshape version 1.4.8 Index]