[R] how to replace all variable values?

blue100 evastrijbis at hotmail.com
Wed May 4 23:20:53 CEST 2011


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.



More information about the R-help mailing list