Re: [R] fail to recover decimal value from data frame

2007-09-12 Thread Julien Barnier
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#

[R] fail to recover decimal value from data frame

2007-09-12 Thread Gonçalo Ferraz
Hi, I have some decimal values stored in a data frame (myframe) and I need to place them in a matrix (mymatrix) using a for loop. When I type: > myframe[i,10] I get: [1] 0.8714 434 Levels: 0 0.0134 0.1062 0.1182 0.1241 0.1322 0.1374 0.1429 0.1507 ... psi1 But when I assign that value to th