Skip to content
Prev 273536 / 398506 Next

do calculations as defined by a string / expand mathematical statements in R

# Changing to variable Z since array() is a function
apply(Z.temp <- Z[,,,a:b],1:3,sum)/dim(Z.temp)[4]
# Should work, though it may be more clear to define Z.temp in its own line

M
On Wed, Oct 5, 2011 at 5:10 PM, Martin Batholdy <batholdy at googlemail.com> wrote: