olat_eval_adjust_lang | R Documentation |
Modifies the names of the variables in the dat.frame
as read from the xlsx file (OpenOLAT). Converts the variable
names to English such that we do no longer have to care about
language in all other methods/functions.
olat_eval_adjust_lang(x)
x |
|
Input 'x' is the data.frame as read from the xlsx file
which contains user meta information and the detailed information
about the individual questions of the test.
Problem: depending on the user language settings of OLAT the names
and order of the columns differs. This function takes input 'x' and
manipulates the variable or column names in a way that the rest
of the code (olat_eval
) is not language dependent anymore.
tries to guess the language by calling olat_eval_guess_lang
loads the search-replace-data.frame (internally)
search and replace variable names
return input object x
with new varaible names
Note: Even English to English will rename some of the variables.
The function uses the data set olat_eval_lang
which is shipped
with the package (see data("olat_eval_lang")
).
Returns the same data.frame
(same dimension and data)
with adjusted names.
Reto
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.