Description Usage Arguments Details Value Author(s)
Calculates arithmetic and geometric summary statistics for an input vector.
1 |
data |
numeric vector to compute summary statistics on. |
pct |
defaults to c(5, 95). Up to 3 different percentiles can be calculated. For example: sum_stats(data, pct = c(5, 50, 95)). If percentiles are not required then set: pct = NA. |
Vector of summary statistics contains the following:
number of elements.
number of NA elements.
minimum value.
maximum value.
median value.
arithmetic mean value.
standard deviation.
arithmetic coefficient of variation.
geometric mean value.
geometric standard deviation.
geometric coefficient of variation.
A vector of named elements (see Details).
Rupert Austin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.