Description Usage Arguments Examples
A wrapper version of tidyr::separate() that automatically creates and names correct number of new variables
1 | separate_n(data, x, sep, fill = "right", extra = "warn")
|
data |
is the data |
x |
is a variable being separated |
sep |
is the separator character |
fill |
default argument passed to tidyr::separate() |
extra |
default argument passed to tidyr::separate() |
prefix |
prefix used in names of variables created by separation |
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.