View source: R/translateFactors.R
translateFactors | R Documentation |
This function allows you to create factors with the information from the dictionary to the variables in the microdata. DO NOT USE for NPSor slider questions that have range different than 0-10.
translateFactors(
df,
fromDictionary,
toDictionary,
questionPrefix = "q_",
skipQuestionString = "Saltar pregunta"
)
df |
data downloaded from Mongo, cleaned with cleanData.R and scrubbed with scrubData.R |
fromDictionary |
dictionary created using dictGenerator.R in expanded form without screens in the original language |
toDictionary |
dictionary created using dictGenerator.R in expanded form without screens in the target language |
questionPrefix |
Character that identifies questions |
skipQuestionString |
value that represents the skipped questions. By default "Saltar pregunta" |
Dataframe with questions in format that is analysis friendly.
Gabriel N. Camargo-Toledo gcamargo@sensata.io
TBD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.