separate_tidy | R Documentation |
This function is primarily a wrapper for separate, which turns a single character column into multiple columns
separate_tidy(
data,
col,
into = NULL,
sep = "_",
coerce_NA = TRUE,
na.strings = "NA",
message_inferred_into = TRUE,
...
)
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 separate: 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 |
message_inferred_into |
logical whether column names for |
... |
Other arguments passed to separate |
A data frame containing new columns in the place of col
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.