dear all,

Im a complete R newby with the following question.

I have a dataset where my variable values are incorrectly numbered. it has
to be something like this

Where x is variable name, y=actual value which must become corresponding
z-value

x3      x4      x5                                      x3      x4      x5
y1      y3      y4                                      z1      z3      z4
y2                              must become             z2
y5                                                      z5

The y and z variables are matched by:

x1      x2      
y1      z1      
y2      z2              
y3      z3      
y4      z4
y5      z5

Anybody any suggestion? All help is very much appreciated..

--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-replace-all-variable-values-tp3496838p3496838.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to