powered by
Convenient interface for computing statistics on a vector
dostats(x, ..., .na.action = na.fail)
the vector
statistics to compute, must take a vector and return a vector
the action to take on NA values, for all statistics
A one row data.frame with columns named as in ...
data.frame
...
ldply
# NOT RUN { data(mtcars) library(plyr) dostats(1:10, mean, median, sd, quantile, IQR) ldply(mtcars, dostats, median, mean, sd, quantile, IQR) # }
Run the code above in your browser using DataLab