[R] about data structure

lily li chocold12 at gmail.com
Mon Nov 7 21:24:57 CET 2016

Hi R users,

I'm wondering why the values changed when I try to transform factors into

For example, for a data frame DF, there is one column called precipitation,
which is usually lower than 100mm. But this column is factor when I read in
the data. When transform to numeric values, some rows can be higher than
1000mm. What is the problem? Thanks.

DF$prec_new = as.numeric(DF$precip)

	[[alternative HTML version deleted]]

More information about the R-help mailing list