[R] Aggregate with multiple statistics?
Alex Brown
alex at transitive.com
Tue Oct 24 11:37:24 CEST 2006
Try the summary function, which pretty much does exactly that.
-Alex
On 20 Oct 2006, at 23:44, Jonathan Greenberg wrote:
> Is there a way to calculate, say, the mean, min and max using
> aggregate
> using one line of code? Or do I need to call them separately (e.g.
> aggregate(...,mean); aggregate(...,min)) and then merge the data back
> together?
>
> --j
>
> --
> Jonathan A. Greenberg, PhD
> NRC Research Associate
> NASA Ames Research Center
> MS 242-4
> Moffett Field, CA 94035-1000
> Office: 650-604-5896
> Cell: 415-794-5043
> AIM: jgrn307
> MSN: jgrn307 at hotmail.com
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list