| unite | R Documentation |
Combine several columns into one
unite(data, column, cols, sep = "_", remove = TRUE, na.rm = FALSE)
data |
A data.frame. |
column |
Name of a single column. |
cols |
Character vector of column names. |
sep |
Separator string. |
remove |
Drop the source column(s) after the operation. |
na.rm |
Drop missing values before computing the result. |
data with cols combined into column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.