medianIQR: Median and Interquartile Range

View source: R/funciones.R

medianIQRR Documentation

Median and Interquartile Range

Description

Median and Interquartile Range

Usage

medianIQR(x, digits = 2, probs = c(0.25, 0.75), roundFrom = 30, na.rm = TRUE)

Arguments

x

A vector of numeric values.

digits

Number of decimal digits for showing the median and Interquartile Range of x.

probs

Pair of quantiles to be computed around the median. Default are q25 and q75.

roundFrom

If median is greater than this value, median and IQR are rounded to zero decimals even if digits>0.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

A character with the value of the median and Interquartile Range.

Examples

medianIQR(rnorm(50))
medianIQR(runif(500,0,3))


angeloSdP/reportingTools documentation built on Dec. 25, 2024, 11:19 a.m.