qualtRics
qualtRics copied to clipboard
Ordered factor conversion for multiple choice question
It looks like the wrap_mc function in the utils.R script uses "choiceText" from the survey metadata as the factor levels, which isn't guaranteed to match the response values returned from fetchsurveys. This causes an error if, for example, the choice text has a capital letter in it, but the variable name does not. It seems like "variableName" would be a better choice for the levels, though I am new to Qualtrics, so I may be misinterpreting these values.
https://github.com/ropensci/qualtRics/blob/72bde4e84805d659c98e77c2b92e12a13513081f/R/utils.R#L363