Skip to content
Prev 22285 / 398502 Next

Help massaging big arrays

Philip Rhoades <pri at chu.com.au> writes:
Except for item 4, these are trivial and quite fundamental. You'd be
better off looking into Ch.5 of  "An Introduction to R" than to have
people write down the solution for you.

Item 4 is a little tricky:

sapply(2^(1:5), function(i)apply(m[,1:i],1,mean))