[R] Recoding

From: David Scott <d.scott_at_auckland.ac.nz>
Date: Tue, 12 Jun 2007 00:24:54 +1200 (NZST)

I want to do some recoding of variables: code Age into groups and recode a factor into a smaller number of levels.

There are a couple of options for recode functions, in the car package and in memisc, and I think in gmisc.

Does anyone have any opinions on the the easiest, most reliable approach for these problems?

David Scott


David Scott	Department of Statistics, Tamaki Campus
 		The University of Auckland, PB 92019
 		Auckland 1142,    NEW ZEALAND
Phone: +64 9 373 7599 ext 86830		Fax: +64 9 373 7000
Email:	d.scott_at_auckland.ac.nz

Graduate Officer, Department of Statistics Director of Consulting, Department of Statistics



R-help_at_stat.math.ethz.ch 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. Received on Mon 11 Jun 2007 - 12:37:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Jun 2007 - 13:31:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.