[R] fail to recover decimal value from data frame
Julien Barnier
jbarnier at ens-lsh.fr
Wed Sep 12 16:08:31 CEST 2007
Hi,
> [1] 0.8714
> 434 Levels: 0 0.0134 0.1062 0.1182 0.1241 0.1322 0.1374 0.1429
> 0.1507 ... psi1
The problem is that your data are not stored as numeric, but as a
factor.
You can see the following R FAQ entry to turn it back to a numeric
form :
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f
HTH,
Julien
--
Julien Barnier
Groupe de recherche sur la socialisation
ENS-LSH - Lyon, France
More information about the R-help
mailing list