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
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
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
3 matches
Mail list logo