Calculates arithmetic and geometric summary statistics for an input vector.
numeric vector to compute summary statistics on.
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.
arithmetic mean value.
arithmetic coefficient of variation.
geometric mean value.
geometric standard deviation.
geometric coefficient of variation.
A vector of named elements (see Details).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.