paste_median: Paste median

paste_medianR Documentation

Paste median

Description

Creates a formatted median with inter-quartile range from numeric data.

Usage

paste_median(x, less.than.one = FALSE, digits = 1)

Arguments

x

A numeric. Data to summarize.

less.than.one

A logical. Indicates a median that rounds to 0 should be printed as <1.

digits

An integer. Number of digits to round to.

Value

A character vector of the median(s) with interquartile range(s).

Examples

paste_median(mtcars$mpg)

utile.tools documentation built on Feb. 16, 2023, 10:08 p.m.