formatMedIQR: Function to format the median and IQR of a variable

formatMedIQRR Documentation

Function to format the median and IQR of a variable

Description

Function to format the median and IQR of a variable

Usage

formatMedIQR(x, d = 2, na.rm = TRUE)

Arguments

x

the data to have the median and IQR calculated

d

How many digits to display. Defaults to 2.

na.rm

Logical whether to remove missing values. Defaults to TRUE.

Value

A character string with results

Examples

formatMedIQR(mtcars$mpg)

JWiley/JWileymisc documentation built on Feb. 15, 2024, 12:23 p.m.