[R] Question about levels/as.numeric

2011-04-10 Thread Thibault Vatter
h should be equivalent to: > cbind(returns2[which(names == id)[1:10],1]) [,1] [1,] -0.002206 [2,] 0.115696 [3,] -0.015192 [4,] 0.008719 [5,] -0.004654 [6,] -0.010688 [7,] 0.009453 [8,] 0.002676 [9,] 0.001334 [10,] -0.011326 Thanks a lot, Thibault - *Thibault Va

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Thibault Vatter
Thanks Kent and Petr, the problem was indeed the "C"/missing value that I had to convert! Thanks Peter too, the "factor" explanation will also be quite usefull for further work. Best regards, Thibault On 11 April 2011 03:48, Rolf Turner wrote: > On 11/04/11 10:08, Peter Ehlers wrote: > > > >