The part "by taking a copy" should be "by taking a shallow copy". Other than that, nothing is wrong. If you get this message, then your data.table has somehow lost it's over-allocation.
I can't help much without seeing a minimal reproducible example :-(. On Tue, Jan 27, 2015 at 3:53 PM, statquant3 <[email protected]> wrote: > Arun, this is what I get... > I still think something is wrong no ? > > Warning message: > In `[.data.table`(DT, , `:=`(KEY, paste0(date, symbol, sep = "_"))) : > Invalid .internal.selfref detected and fixed by taking a copy of the > whole > table so that := can add this new column by reference. At an earlier point, > this data.table has been copied by R (or been created manually using > structure() or similar). Avoid key<-, names<- and attr<- which in R > currently (and oddly) may copy the whole data.table. Use set* syntax > instead > to avoid copying: ?set, ?setnames and ?setattr. Also, in R<=v3.0.2, > list(DT1,DT2) copied the entire DT1 and DT2 (R's list() used to copy named > objects); please upgrade to R>v3.0.2 if that is biting. If this message > doesn't help, please report to datatable-help so the root cause can be > fixed. > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/whole-data-table-copied-warning-tp4702267p4702370.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help >
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
