[R] I need to change from character to numeric?

Samuel Bächler linux at boeser.ch
Fri Aug 29 14:09:03 CEST 2008


>  I am reading numeric data as below but the problem is the object
>  ndata1 and nd1 have characters instead of numeric values. I want to
>  keep it as numeric. Why the type has changed from numeric to
>  character and how to avoid this problem?

help(as.numeric)

Your variable rdata1 has probably character-type.

s.



More information about the R-help mailing list