A collection of functions that will report summary statistics. To create a custom function,
consider using a function with all three arguments and ...
. See the tableby
vignette
for an example.
meansd(x, na.rm = TRUE, weights = rep(1, length(x)), ...)medianrange(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
median(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
range(x, na.rm = TRUE, ...)
Nevents(x, ...)
medSurv(x, ...)
q1q3(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
medianq1q3(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
Nmiss(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)), ...)
N(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)), ...)
count(x, levels = sort(unique(x)), na.rm = TRUE, weights = rep(1,
length(x)), ...)
countpct(x, levels = sort(unique(x)), na.rm = TRUE, weights = rep(1,
length(x)), ...)
Usually a vector.
Should NAs be removed?
A vector of weights.
Other arguments.
A vector of levels that character x
s should have.
Usually a vector of the appropriate numbers.
Not all these functions are exported, in order to avoid conflicting NAMESPACES.