Mean: datasummary statistic shortcut

Description Usage Arguments Examples

View source: R/datasummary_functions.R

Description

datasummary statistic shortcut

Usage

1
Mean(x, fmt = NULL, na.rm = TRUE, ...)

Arguments

x

variable to summarize

fmt

passed to the modelsummary:::rounding function

na.rm

a logical value indicating whether ‘NA’ values should be stripped before the computation proceeds.

...

unused

Examples

1
2
3
4
5
6
## Not run: 
datasummary(mpg + hp ~ Mean + P0 + P25 + P50 + P75 + P100 +
            Min + Max + SD + Var,
            data = mtcars)

## End(Not run)

modelsummary documentation built on June 17, 2021, 5:08 p.m.