[R] SAS-like method of recoding variables?
David Winsemius
dwinsemius at comcast.net
Mon Jun 22 20:52:37 CEST 2009
On Jun 22, 2009, at 2:27 PM, Mark Na wrote:
> 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);
?ifelse
>
> Thanks for any help or suggestions you might be able to provide!
>
> Mark Na
>
> ______________________________________________
> R-help at 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.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list