> That is, I want to define something like the > following using an a*ply method, but aaply gives a result in which the > applied .margin(s) do not appear last in the > result, contrary to the documentation for ?aaply. I think this is a bug, > either in the function or the documentation, > but perhaps there's something I misunderstand for this case.
Maybe the documentation isn't clear but I think this is behaving as expected: * the margin you split on comes first in the output * followed by the dimensions created by the applied function. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ 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.