check_arguments {labelmachine} | R Documentation |
Function that applies some general checks to the arguments of lama_translate()
and lama_translate_()
Description
Function that applies some general checks to the arguments of lama_translate()
and lama_translate_()
Usage
check_arguments(.data, dictionary, col_new, keep_order, to_factor,
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. |
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 |
err_handler |
An error handling function |