[R] prb with data.table

jim holtman jholtman at gmail.com
Sun Apr 17 02:39:37 CEST 2011


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, yoda55 <arnaud.amsellem at gmail.com> wrote:
> 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.table(), pretty much all the tests fail (see
> below)
> Test 8 Error in seq.default(to = xlen, length = n) :
>  length must be non-negative number
> Test 9 Error in seq.default(to = xlen, length = n) :
>  length must be non-negative number
> .....
>
> Any help appreciated
>
> --
> View this message in context: http://r.789695.n4.nabble.com/prb-with-data-table-tp3454478p3454478.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?



More information about the R-help mailing list