[datatable-help] "Within" Reversed column order?

Yike Lu yikelu.home at gmail.com
Sat May 26 19:47:52 CEST 2012


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.


More information about the datatable-help mailing list