summarizeFactors
for a function that
handles non-numeric variables.). It calculates the quantiles for
each variable, as well as the mean, standard deviation, and
variance, and then packs those results into a matrix. The main
benefits from this compared to R's default summary are 1) more
summary information is returned for each variable (dispersion), 2)
the results are returned in a matrix that is easy to use in
further analysis, 3) the columns in the output are
alphabetized. To prevent alphabetization, use
alphaSort = FALSE.summarizeNumerics(dat, alphaSort = TRUE, sumstat = TRUE, digits = max(3,
getOption("digits") - 3))