separate_var | R Documentation |
Separate columns
separate_var(data, var, by, names, into = c("cols", "rows"))
data |
dataset |
var |
name of variable to be separated |
by |
a string as delimiter between values (separate by delimiter) or
integer(s) as number of characters to split by (separate by position),
the length of |
names |
for |
into |
whether to split into new rows or columns |
Separated dataset
Zhaoming Su
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.