<div dir="ltr">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. <div><br></div><div>I can't help much without seeing a minimal reproducible example :-(.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 3:53 PM, statquant3 <span dir="ltr"><<a href="mailto:statquant@outlook.com" target="_blank">statquant@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Arun, this is what I get...<br>
I still think something is wrong no ?<br>
<br>
Warning message:<br>
In `[.data.table`(DT, , `:=`(KEY, paste0(date, symbol, sep = "_"))) :<br>
  Invalid .internal.selfref detected and fixed by taking a copy of the whole<br>
table so that := can add this new column by reference. At an earlier point,<br>
this data.table has been copied by R (or been created manually using<br>
structure() or similar). Avoid key<-, names<- and attr<- which in R<br>
currently (and oddly) may copy the whole data.table. Use set* syntax instead<br>
to avoid copying: ?set, ?setnames and ?setattr. Also, in R<=v3.0.2,<br>
list(DT1,DT2) copied the entire DT1 and DT2 (R's list() used to copy named<br>
objects); please upgrade to R>v3.0.2 if that is biting. If this message<br>
doesn't help, please report to datatable-help so the root cause can be<br>
fixed.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://r.789695.n4.nabble.com/whole-data-table-copied-warning-tp4702267p4702370.html" target="_blank">http://r.789695.n4.nabble.com/whole-data-table-copied-warning-tp4702267p4702370.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the datatable-help mailing list archive at Nabble.com.<br>
_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br>
</div></div></blockquote></div><br></div>