Re: [R] changing variables in a dataset

2009-05-06 Thread David Winsemius
t;schung" , r-help@r-project.org Sent: Wednesday, May 6, 2009 10:49:54 AM GMT -06:00 US/Canada Central Subject: Re: [R] changing variables in a dataset you could use chickwts$feed<- as.numeric(levels(chickwts$feed))[as.integer(chickwts$feed)] I got this by searching archives of old

Re: [R] changing variables in a dataset

2009-05-06 Thread Federman, Douglas
org on behalf of schung Sent: Wed 5/6/2009 10:55 AM To: r-help@r-project.org Subject: [R] changing variables in a dataset Hi! I just quasi-learned how to use R and I'm trying to change the feed from horsebean, linseed, etc to 1, 2, 3, etc The dataset I'm practicing on is pre-loaded in R

[R] changing variables in a dataset

2009-05-06 Thread schung
Hi! I just quasi-learned how to use R and I'm trying to change the feed from horsebean, linseed, etc to 1, 2, 3, etc The dataset I'm practicing on is pre-loaded in R data(chickwts) chickwts Any help is much appreciated!! Thank you!! -- View this message in context: http://www.nabble.com/chan