[R] Can package plyr also calculate the mode?
sarah.goslee at gmail.com
Wed Apr 3 23:32:17 CEST 2013
Sure, you can add the mode in, following the format by the other
On Wed, Apr 3, 2013 at 5:25 PM, ramoss <ramine.mossadegh at finra.org> wrote:
> I am trying to replicate the SAS proc univariate in R. I got most of the
> stats I needed for a by grouping in a data frame using:
> all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS),
> q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95),
> q99=quantile(COUNTS,.99) )
> So I got the mean, median std dev, quantiles etc.
> IS there any way I can add the mode to the mixt. Thanks ahead for any
More information about the R-help