unite_vars | R Documentation |
This function unites column variable and makes it a factor, for easy use in other functions.
unite_vars(x, vars, colname = "block", ...)
x |
a data frame |
vars |
character vector, with values to unite |
colname |
name new column |
... |
parsed to underlying function tidyr::unite |
data frame where multiple columns are united
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.