translate_vector {labelmachine} | R Documentation |
This function relabels a vector
Description
This function relabels a vector
Usage
translate_vector(val, translation, keep_order, to_factor, is_translated,
err_handler)
Arguments
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 |
Value
A factor vector holding the assigned labels
[Package labelmachine version 1.0.0 Index]