Re: [R] apply

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 08 Apr 2005 - 00:22:55 EST


On 7 Apr 2005 at 14:27, malte wrote:

> Hi,
>
> simple question I guess:
>
> the following line works well:
>
> aveBehav=c(apply(sdata, 2, mean))

Hallo
 try

aveBehav=c(apply(sdata, 2, mean, na.rm=T))

Cheers
Petr

>
> 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
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal@precheza.cz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Apr 08 00:25:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:03 EST