[R] SAS-like method of recoding variables?

Mark Na mtb954 at gmail.com
Mon Jun 22 20:27:46 CEST 2009


Dear R-helpers,

I am helping a SAS user run some analyses in R that she cannot do in
SAS and she is complaining about R's peculiar (to her!) way of
recoding variables. In particular, she is wondering if there is an R
package that allows this kind of SAS recoding:

IF TYPE='TRUCK' and count=12 THEN VEHICLES=TRUCK+((CAR+BIKE)/2.2);

Thanks for any help or suggestions you might be able to provide!

Mark Na




More information about the R-help mailing list