<div>GSee, I find this a bit confusing at the moment as well - the convergence of "rbind" and "rbindlist" and therefore the future of "rbindlist". </div><div><br></div><div>`rbindlist` gained speed (to some extent) by assuming things like this and skipping checks in the first place. So, should we include checks like this? Also, if "rbind" and/or "rbindlist" are made to do the exact same thing, then, what's the purpose of "rbindlist"?</div><div><br></div><div>Any thoughts?</div>
<div><div><br></div><div>Arun</div><div><br></div></div>
<p style="color: #A0A0A8;">On Saturday, November 9, 2013 at 6:29 PM, Eduard Antonyan wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><p dir="ltr">Fyi, it's not well documented, but setting use.names=FALSE in rbind would replicate rbindlist behavior.</p>
<p dir="ltr">I think it's a reasonable FR - if/when all of rbind code goes into C, it would be trivial to add. <br>
</p>
<div>On Nov 9, 2013 10:51 AM, "G See" <<a href="mailto:gsee000@gmail.com">gsee000@gmail.com</a>> wrote:<br type="attribution"><blockquote type="cite"><div>
Hi,<br>
<br>
Please note the inconsistency between the behavior of rbind() and<br>
rbindlist() below.<br>
<br>
m1 <- as.data.table(mtcars)<br>
m2 <- copy(m1)<br>
rbind(m1[, .SD[1], by=cyl], m2) # Gives warning and binds by name<br>
rbindlist(list(m1[, .SD[1], by=cyl], m2)) # no warning, and does NOT<br>
bind by name<br>
<br>
What do you think about making them have the same behavior and/or<br>
warning? Personally, I prefer the behavior of rbind(), and would<br>
prefer to see a warning if column names are ignored like they are with<br>
rbindlist().<br>
<br>
Thanks,<br>
Garrett<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></blockquote></div>
</div><div><div>_______________________________________________</div><div>datatable-help mailing list</div><div><a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a></div><div><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>