Re: [R] Basic Q on coercing factors in data frames to numeric

2004-11-10 Thread Roger D. Peng
I believe this is a FAQ. See http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f -roger Robert Brown FM CEFAS wrote: Hi there, I'm running R 2.0.0 on Windows 95. I'm trying to coerce a column of factors within a data frame to numeric. This is not a problem wi

[R] Basic Q on coercing factors in data frames to numeric

2004-11-10 Thread Robert Brown FM CEFAS
Hi there, I'm running R 2.0.0 on Windows 95. I'm trying to coerce a column of factors within a data frame to numeric. This is not a problem with a vector, but I can't find a way to index a column within a data frame to achieve this. All the examples from 'An introduction to R', 'S-plus 6 prog