Skip to contents

List of Summary Functions

Usage

summary_functions(statvar, statdec)

Arguments

statvar

Input statistics

statdec

Corresponding number of decimal places for each statistic

Value

A named list containing function definition for all defined summary statistics - mean, min, max, median, mode iqr, var, sum, sd, q25, q75, p1, p5, p10, p90, p95, p99 (where last digits represent % of quantile), whiskerlow, whiskerup, outliers in the Tukey method for box statistics, geometric mean/sd/CI

Examples

summary_functions(c("mean", "mode"), c(2, 1))
#> $mean
#> function (x) 
#> {
#>     dc <- do.call(f, args = list(x, na.rm = TRUE, ...))
#>     ifelse(is.na(dc), "-", round_f(dc, d))
#> }
#> <bytecode: 0x1265fb90>
#> <environment: 0x15208840>
#> 
#> $mode
#> function (x) 
#> {
#>     dc <- do.call(f, args = list(x, na.rm = TRUE, ...))
#>     ifelse(is.na(dc), "-", round_f(dc, d))
#> }
#> <bytecode: 0x1265fb90>
#> <environment: 0x15142b88>
#>