Provides summary statistics (mean, sd, quartiles, IQR, missing n, valid n) for the variables in a data frame.
sumStats(data, vars, byvar = NULL, convertFactors = TRUE)
A data frame from which variables will be extracted.
A character vector of variable names.
A character string giving a variable name of a stratifying variable. The summaries of the vars
will be provided for each level of byvar
.
Logical indicating whether factors should be converted to numeric first and then summarised.
a vector of summary statistics for each variable or variable-group combination.