| concat.split.compact {splitstackshape} | R Documentation |
The default splitting method for concat.split. Formerly based
on read.concat but presently a simple wrapper for
cSplit.
concat.split.compact(data, split.col, sep = ",", drop = FALSE, fixed = TRUE, ...)
data |
The source |
split.col |
The variable that needs to be split (either name or index position). |
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 |
A data.table.
This function no longer does anything different from
cSplit. It is recommended that you transition your code to the
cSplit function instead.
Ananda Mahto
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)