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. _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
