Re: [R] apply and arrays

2005-07-25 Thread Prof Brian Ripley
On Mon, 25 Jul 2005, Uwe Ligges wrote: > Laura Holt wrote: > >> 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? > > Don't know which d

Re: [R] apply and arrays

2005-07-24 Thread Uwe Ligges
Laura Holt wrote: > 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? Don't know which direction you mean, I guess one of the following:

[R] apply and arrays

2005-07-24 Thread Laura Holt
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? thanks, Laura Holt mailto: [EMAIL PROTECTED] __ R-help@s