I wonder how to call for five-number stats from describeBy() function as provided by summary(). After calling library(psych), the current function reports min, max and median, but not stats for 25th and 75th quartiles.
attach(mtcars)
describeBy(mpg, gear)
var n mean sd median trimmed mad min max range skew kurtosis se
Appreciate your help in advance.
There is also a built-in base function specifically for the five numbers unsurprisingly called:
fivenumEDIT to answer the followup Q in comments (as I interpret it) you can use the
.in the formula to specify all other columnsOr if you just want the
fivenumfor all columns without the gear split then that is: