powered by
Translate item
translate_items(vector, dict)
A vector whose values are to be translated.
A named vector, whose names are keys in 'vector' to be replaced and whose values are the new values
A vector with new values
# NOT RUN { v = c("A","B","C") dict = c("A"="1") translate_items(v, dict) # }
Run the code above in your browser using DataLab