View source: R/DataReformatting.R
merge_original_and_other_units | R Documentation |
Many of the RHoMIS variables come from multiple select, with the option to specify "other" by free-text entry. This function allows you to bring the "other" category into the main column, facilitating analysis.
merge_original_and_other_units(data, main_column, other_column, loop_structure)
data |
The data you would like to convert |
main_column |
The main column you would like to add the "other" options |
other_column |
The name of the "other" column where you would like to integrate your values |
loop_structure |
Whether or not the "other" columns you are converting come in a loop, or whether it is simple a pair of columns |
Rpackage file: DataReformatting.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.