mean_sd: Mean plus standard deviation

View source: R/tables.R

mean_sdR Documentation

Mean plus standard deviation

Description

A vector will be output containing the arithmetic mean and the standard deviation. The output can be used directly in the function format_values to create summary tables.

Usage

mean_sd(var, na.rm = T)

Arguments

var

variable name

na.rm

logical, indicating whether NA values should be excluded

Value

Character string

Examples

mean_sd(rnorm(100, 1000, 10))

LDSamson/associationstudies documentation built on April 14, 2025, 11:52 a.m.