Re: [R] prb with data.table

2011-04-17 Thread yoda55
I upgraded to R.2.13.0 and the problem disappeared. Thx -- View this message in context: http://r.789695.n4.nabble.com/prb-with-data-table-tp3454478p3455103.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] prb with data.table

2011-04-16 Thread jim holtman
I would first recommend upgrading to the latest version of R. I am running R 2.12.2 on Windows 7 and it seem to run fine: > DT = data.table(x=rep(c("a","b","c"),each=3), y=c(1,3,6), v=1:9) > setkey(DT,x) > DT["a"] x y v [1,] a 1 1 [2,] a 3 2 [3,] a 6 3 On Sat, Apr 16, 2011 at 3:30 PM, yod

[R] prb with data.table

2011-04-16 Thread yoda55
R.2.11.1 on Windows 7 When running data.table examples. > DT = data.table(x=rep(c("a","b","c"),each=3), y=c(1,3,6), v=1:9) > setkey(DT,x) > DT["a"] I get the following error message Erreur dans seq.default(to = xlen, length = n) : length must be non-negative number When running the test.data.ta