translate_vector {labelmachine} | R Documentation |
This function relabels a vector
translate_vector(val, translation, keep_order, to_factor, is_translated,
err_handler)
val |
The vector that should be relabeled. Allowed are all vector types (also factor). |
translation |
Named character vector holding the label assignments. |
keep_order |
A logical flag. If the vector in |
to_factor |
A logical flag. If set to |
is_translated |
A logical flag. If |
err_handler |
An error handling function |
A factor vector holding the assigned labels