I just noticed this annoyance, but I'm not the first one, apparently -- see http://lists.r-forge.r-project.org/pipermail/datatable-help/2012-May/001176.html
The thread never answered the OP's question "Is this a bug?" so I assume the answer, unfortunately, is No. If not a bug, do users of within have a workaround to produce a result with columns as ordered within 'within'? I can think of a way using names and subset-with-select, but that seems unduly kludgy. Thanks, Dan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.