util_recode {dataquieR} | R Documentation |
Map a vector of values based on an assignment table
Description
Map a vector of values based on an assignment table
Usage
util_recode(values, mapping_table, from, to, default = NULL)
Arguments
values |
vector the vector |
mapping_table |
data.frame a table with the mapping table |
from |
character the name of the column with the "old values" |
to |
character the name of the column with the "new values" |
default |
character either one character or on character per value,
being used, if an entry from |
Value
the mapped values
See Also
Other mapping:
util_map_all()
,
util_map_by_largest_prefix()
,
util_map_labels()
[Package dataquieR version 2.1.0 Index]