[R] apply and arrays

Laura Holt holtlaura at gmail.com
Mon Jul 25 06:23:42 CEST 2005

Hi R!

I have a 3 dimensional array, which is 21 x 3 x 3

I want to use apply to sum on each 21x3 matrix, which is fine.

Is there a way that I can do this in 1 step instead of a loop (3), please?

Laura Holt
mailto: holtlaura at gmail.com

More information about the R-help mailing list