check_and_translate_df_ {labelmachine} | R Documentation |
Checks arguments and translate a data.frame (standard eval)
Description
Checks arguments and translate a data.frame (standard eval)
Usage
check_and_translate_df_(.data, dictionary, translation, col, col_new,
keep_order, to_factor, is_translated, err_handler)
Arguments
.data |
Either a data frame, a factor or an atomic vector. |
dictionary |
A lama_dictionary object, holding the translations for various variables. |
translation |
A character vector holding the names of the variable
translations which
should be used for assigning new labels to the variable. This names must be
a subset of the translation names returned by |
col |
Only used if |
col_new |
Only used if |
keep_order |
A boolean vector of length one or the same length as the
number of translations. If the vector has length one, then the same
configuration is applied to all variable translations. If the vector has
the same length as the number of arguments in |
to_factor |
A boolean vector of length one or the same length as the
number of translations. If the vector has length one, then the same
configuration is applied to all variable translations. If the vector has
the same length as the number of arguments in |
is_translated |
A boolean vector of length one or the same length as the
number of translations. If the vector has length one, then the same
configuration is applied to all variable translations.
If |
err_handler |
An error handling function |