[datatable-help] Cannot convert from data.frame to data.table inside RStudio
Arunkumar Srinivasan
aragorn168b at gmail.com
Sat Jul 26 23:19:27 CEST 2014
Hi John,
Sorry, but I am not able to reproduce the issue on my mac. You say you're using CentOS. Is it possible for you test it on other systems and see if they're reproducible? Also, is the example you provided in the first post also giving the error, or is it restricted to 2^31-1 as you mention in your second post? If so, could you provide another minimal reproducible example?
Lastly, could you also try installing the latest version of data.table from the github page and see if the issue is fixed?
Best,
Arun
From: jpbowman01 john at therandomco.com
Reply: jpbowman01 john at therandomco.com
Date: July 24, 2014 at 9:54:33 PM
To: datatable-help at lists.r-forge.r-project.org datatable-help at lists.r-forge.r-project.org
Subject: Re: [datatable-help] Cannot convert from data.frame to data.table inside RStudio
Just to keep the solution to this problem available...
It turns out that if you have an integer in a data table = 2^31-1 and you
setkey on that variable, fail happens that sticks around after the failure
and has some bizarre effects that don't look like they have anything to do
with your index attempt or even the data table which you were trying to
index, e.g., the error messages in the OP. Earlier in the day I had done
such a setkey; even with the data table deleted and working on toy problems,
as in the OP, these errors will occur.
I can clean out all the variables etc., but the failure persists in the
code, as some code appears to be overwritten when the attempt to index
occurs. In RStudio the solution (other than the obvious "delete the
observation with the value that causes the problem") is to restart R.
More generally, the solution would be for the setkey function to check for
values of 2^31-1 (or larger one assumes) on integer keys and fail
gracefully.
--
View this message in context: http://r.789695.n4.nabble.com/Cannot-convert-from-data-frame-to-data-table-inside-RStudio-tp4694494p4694497.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
datatable-help at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20140726/d0bbb19c/attachment.html>
More information about the datatable-help
mailing list