[datatable-help] recode variable regardless of its order
Veda
vedahung1116 at gmail.com
Thu Jun 16 14:30:17 CEST 2016
Hello experts,
I have two variables in a data frame, say "varA" and "varB".
varA: a, a, a, b, b, b, c, c, c
varB: a, b, c, a, b, c, a, b, c
What I want to do is to create two new variables like bellow
varA: a, a, a, *a*, b, b, *a*, *b*, c
varB: a, b, c, *b*, b, c, *c*, *c*, c
The point is to ignore whether the element is in varA or varB in the
recoding. I really appreciate any suggestion to achieve this. Thanks!
Veda
--
View this message in context: http://r.789695.n4.nabble.com/recode-variable-regardless-of-its-order-tp4721864.html
Sent from the datatable-help mailing list archive at Nabble.com.
More information about the datatable-help
mailing list