Re: [R] prb with data.table

From: jim holtman <jholtman_at_gmail.com>
Date: Sat, 16 Apr 2011 20:39:37 -0400

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?

______________________________________________
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.
Received on Sun 17 Apr 2011 - 00:44:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 17 Apr 2011 - 08:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive