separate_tidy {gcplyr} | R Documentation |
This function is primarily a wrapper for tidyr::separate
, which
turns a single character column into multiple columns
separate_tidy(
data,
col,
into = NULL,
sep = "_",
coerce_NA = TRUE,
na.strings = "NA",
...
)
data |
A data frame |
col |
Column name or position |
into |
A character vector of the new column names. Use If NULL, |
sep |
Separator between columns passed to If character, If numeric, |
coerce_NA |
logical dictating if strings matching any of
|
na.strings |
A character vector of strings which are to be interpreted
as |
... |
Other arguments passed to |
A data frame containing new columns in the place of col