long_to_wide.Rd
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.
if (FALSE) { wide_data2 <- long_to_wide(long_data, columns, value_sep = 'xxx') }