SD: datasummary statistic shortcut

View source: R/datasummary_functions.R

SDR Documentation

datasummary statistic shortcut

Description

datasummary statistic shortcut

Usage

SD(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

if (identical(Sys.getenv("pkgdown"),  "true")) {
datasummary(mpg + hp ~ Mean + Median + P0 + P25 + P50 + P75 + P100 +
            Min + Max + SD + Var,
            data = mtcars)
}

modelsummary documentation built on Oct. 15, 2023, 5:06 p.m.