translate_items: Translate item

translate_itemsR 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)

hgutils documentation built on March 31, 2022, 5:06 p.m.