[datatable-help] minor formatting issue

eddi eduard.antonyan at gmail.com
Mon Apr 29 22:51:26 CEST 2013


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.


More information about the datatable-help mailing list