separate_ {tidyr} | R Documentation |
separate
.This is a S3 generic.
separate_(data, col, into, sep = "[^[:alnum:]]+", remove = TRUE, convert = FALSE, extra = "warn", fill = "warn", ...)
data |
A data frame. |
col |
Name of column to split, as string. |
into |
Names of new variables to create as character vector. |
sep |
Separator between columns. If character, is interpreted as a regular expression. The default value is a regular expression that matches any sequence of non-alphanumeric values. If numeric, interpreted as positions to split at. Positive values start
at 1 at the far-left of the string; negative value start at -1 at the
far-right of the string. The length of |
remove |
If |
convert |
If |
extra |
If
|
fill |
If
|
... |
Defunct, will be removed in the next version of the package. |