[R] apply and arrays

From: Laura Holt <holtlaura_at_gmail.com>
Date: Mon 25 Jul 2005 - 14:23:42 EST

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@gmail.com

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 25 14:31:07 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:00 EST