View source: R/translation_to_french.R
tofrench | R Documentation |
Function for translating a fixed set of variables to french
tofrench(
dataset,
which = c("sens_how", "treatment_info", "resist", "benefits", "symptoms", "prevent",
"recognise", "reason_no", "where_swallow", "decision", "how_taken", "vil_mda_type",
"vil_community_how", "yesno", "gender", "school"),
var
)
dataset |
A dataframe containing variable to be translated |
which |
Specifies which set of translations to match.
Individual questionnaire:
* |
var |
The variable from dataframe to be translated |
An object of the same type as dataset
, with additional column created named var_fr
of the french translations.
dataset %>% tofrench("yesno",ind_child_attendance)
will return `dataset` object with a new column named ind_child_attendance_fr, with values `Oui` and `Non`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.