msd_label: Get M (SD) from numeric vector

View source: R/stats-calcs.R

msd_labelR Documentation

Get M (SD) from numeric vector

Description

Get M (SD) from numeric vector

Usage

msd_label(x, digits = c(2, 2), na.rm = TRUE, label = TRUE)

Arguments

x

numeric vector

digits

numeric vector of length 2. Digits to round M and SD to (in that order). Defaults to c(2, 2)

na.rm

logical. whether to remove NAs before calculating M and SD.

label

logical. whether to prepend "M (SD) = " to string

Value

string of form "M (SD)"


WhiteJP/jpw documentation built on April 17, 2025, 5:47 a.m.