View source: R/translate_long.R
long_to_wide | R Documentation |
Convert from long format to wide format, with each level of a given column separated into a different column.
long_to_wide(data, columns, name_sep = "_", value_sep = ";")
data |
A dataframe containing rows of systematic review data in long format. |
columns |
A set of columns containing coded data from within a dataframe. |
name_sep |
A character used to separate terms in the newly generated column names within the data. The default is set to '_' (i.e. snake_case). |
value_sep |
A character used to separate values within the data. The default is set to ';'. |
A dataframe in 'wide' format.
## Not run: wide_data2 <- long_to_wide(long_data, columns, value_sep = 'xxx') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.