translate_items {hgutils} | R Documentation |
Translate item
Description
Translate item
Usage
translate_items(vector, dict)
Arguments
vector |
A vector whose values are to be translated. |
dict |
A named vector, whose names are keys in 'vector' to be replaced and whose values are the new values |
Value
A vector with new values
Examples
v = c("A","B","C")
dict = c("A"="1")
translate_items(v, dict)
[Package hgutils version 0.2.11 Index]