| separate | R Documentation |
Split one column into several
separate(
data,
column,
into,
sep,
remove = TRUE,
extra = c("warn", "drop", "merge"),
fill = c("warn", "left", "right")
)
data |
A data.frame. |
column |
Name of a single column. |
into |
Names of the columns produced by splitting. |
sep |
Separator string. |
remove |
Drop the source column(s) after the operation. |
extra |
How to handle extra pieces beyond |
fill |
Value used for positions where no window/result is available. |
data with column split into into.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.