View source: R/multiple_choice_dummies.R
make_dummies | R Documentation |
Function that converts a multiple choice CES question into a dummy matrix of individual answers
make_dummies(data, variable, prefix)
data |
The data to use. Not in quotes. |
variable |
The variable with the multiple choice answers. In quotes. |
prefix |
The prefix to use for the column names of the dummy matrix. In quotes. |
A data frame of the same length as the data frame passed as argument. Has as many columns as there are unique answers in the variable to review.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.