ol_mean_min_max: Round and format the mean, min, and max as a single character...

View source: R/ui_helpers.R

ol_mean_min_maxR Documentation

Round and format the mean, min, and max as a single character string

Description

Round and format the mean, min, and max as a single character string

Usage

ol_mean_min_max(x, digits = 2, prespace = 0, showNA = "ifany", newline = TRUE)

Arguments

x

the numeric variable to summarize

digits

the number of digits to use in rounding

prespace

An integer indicating the number of spaces to include at the beginning of the string. Default: 0

showNA

whether to print information about NAs. As with table, the options are "no", "ifany", and "always".

newline

if TRUE, include a newline character \n at the end of the string

Value

a formatted character string with mean, min, and max


UNCDEPENdLab/fmri.pipeline documentation built on April 3, 2025, 3:21 p.m.