[R] Request
Spencer Graves
spencer.graves at pdf.com
Thu Mar 27 16:08:38 CET 2003
"rowMeans" also works. Alternatives can be timed using "proc.time".
Spencer Graves
ccleland at optonline.net wrote:
> Ghosh Mini <ghosh at science.unitn.it <mailto:ghosh at science.unitn.it>>
>
> > Is it possible to find the mean of some rows (of some table) and
> > to put it in new table.
>
> Maybe you want something like this:
>
> apply(mydata[, c("x", "y", "z")], 2, function(x){tapply(x,
> list(mydata$date), mean, na.rm=TRUE)})
>
> hope this helps,
>
> Chuck Cleland
>
>
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list