<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see what you mean, thanks for following up. J was an alias for<br>
data.table at some point, maybe up to quite recently. Might have changed<br>
in 1.8.0.<br>
<br>
I'm leaning towards making J() work again as you expected it to, then.<br>
Consistent with it being an alias for data.table, so documentation doesn't<br>
need to change. With fresh eyes, it seems like a bug now.<br>
<br>
If nobody on the list objects, please raise a bug report.<br></blockquote></div><br>Here is the bug report: <a href="https://r-forge.r-project.org/tracker/index.php?func=detail&aid=2265&group_id=240&atid=975">https://r-forge.r-project.org/tracker/index.php?func=detail&aid=2265&group_id=240&atid=975</a><br>
<br>While we're talking about behavior that changed in recent versions, is there any reason why recent versions of data.table give a warning when used with factor columns (for joins)? I know these things are not a problem for people who use exclusively data.table everywhere, but we have a mix of data.table and data.frame objects in our code (for various reasons)... so we can't really convert to strictly string columns. Actually, I don't really see the reason for this warning, as everything works fine even with factor columns.<br>
<br>For data.table and data.frame interoperability, it would also be useful if setnames worked on data.frames.<br><br>Thanks,<br><br> Christian<br><br>