I noticed this when I moved from chained [,:=] to within...
When adding columns, the columns are added in reverse order of the
assignment order, e.g.
DT= data.table(a=1:10, b=2:11)
within(DT,
{
c=a*b
d=a+b
}
)
# d appears before c in the column ordering.
While this isn't a huge deal, it is annoying as I often create data.tables
with many columns and the ordering is intentional, to make the data easier
to read.
Is this a bug?
--
View this message in context:
http://r.789695.n4.nabble.com/Within-Reversed-column-order-tp4631464.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