[R] plyr: a*ply with functions that return matrices-- possible bug in aaply?

hadley wickham h.wickham at gmail.com
Mon Oct 4 15:22:35 CEST 2010


>  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/



More information about the R-help mailing list