Description Usage Arguments Examples
A wrapper version of tidyr::separate() that automatically creates and names correct number of new variables
1 2 | separate_n(data, x, sep, prefix = "new_var_", fill = "right",
extra = "warn")
|
data |
is the data |
x |
is a variable being separated |
sep |
is the separator character |
prefix |
prefix used in names of variables created by separation |
fill |
default argument passed to tidyr::separate() |
extra |
default argument passed to tidyr::separate() |
1 | mtcars %>% rownames_to_column("model") %>% separate_n(x = model, sep = " ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.