[R] apply

malte jan.wiener at tuebingen.mpg.de
Thu Apr 7 14:27:51 CEST 2005


Hi,

simple question I guess:

the following line works well:

aveBehav=c(apply(sdata, 2, mean))

However, I would like to pass an argument to the function mean, namely 
na.rm=TRUE

Does anyone knows how to do this?

Thanks in advance,

Jan




More information about the R-help mailing list