Skip to content
Prev 273523 / 398506 Next

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

Hi, are you looking for

# reproducible example
x <- 1:1000
dim(x)<-rep(10,3)
# code
apply(x,1:2,sum)

note that ?apply works with many functions...



2011/10/5 Martin Batholdy <batholdy at googlemail.com>: