When joining vs not-joining the order of the key column is different in the
output:

> dt = data.table(a = c(1:4), b = c(1:4), key = "b")
> dt[J(1)]
   b a
1: 1 1
> dt[!J(1)]
   a b
1: 2 2
2: 3 3
3: 4 4

I don't usually care about column order, but this could become a surprise
issue for people reading/writing to files.



--
View this message in context: 
http://r.789695.n4.nabble.com/minor-formatting-issue-tp4665760.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

Reply via email to