tran: Translate elements of a vector

Description Usage

Description

This should return something like 'to' whenever all of 'x' is in 'from' Otherwise, if some of x is not modified then it needs to either to change those to NAs or to leave them as is. For a strict function, we can simply index to which will leave it unchanged which conflicts with my versions of tr, ergo this is called tran

Usage

1
tran(from, to, x, tofactor = is.factor(x))

gmonette/yscs documentation built on May 17, 2019, 7:28 a.m.