A memory efficient insertion of a row into a data.table object?
<p>I have a script that creates a data table by inserting data row by row using a loop. The insertion is done using <code>rbindlist()</code>. This method seems to be vary consuming, as it seems that in every iteration my data table <code>dt</code> is reallocated: </p>

<pre><code>tracemem(dt)
[1] "&lt;0x2bd3d00&gt;"
tracemem(dt &lt;- rbindlist(list(dt, newrow)))
[1] "&lt;0x44a7fe0&gt;"
</code></pre>

<p>Some old comments (~3 years) in this <a href="https://stackoverflow.com/questions/16652533/insert-a-row-in-a-data-table">question</a> mention the planning of an 
<code>insert()</code> method, however I have not found any update in this regard. Is there any memory efficient method to do this?</p>