Re: [R] modifying factors in a data frame

2010-08-18 Thread Abhishek Pratap
Kiaora Koe Peter It worked. I hope I am getting my Maori right. -Abhi On Thu, Aug 19, 2010 at 1:50 AM, Peter Alspach wrote: > > Tena koe Abhi > > The easiest way is probably > > data1$sample <- as.numeric(data1$sample) > > If you want it to remain as a factor then > > data1$sample <- as.factor(

Re: [R] modifying factors in a data frame

2010-08-18 Thread Peter Alspach
Tena koe Abhi The easiest way is probably data1$sample <- as.numeric(data1$sample) If you want it to remain as a factor then data1$sample <- as.factor(as.numeric(data1$sample)) HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-