fivenum: Tukey Five-Number Summaries

Description Usage Arguments Value See Also Examples

View source: R/statistics.R

Description

Returns Tukey's five number summary (minimum, lower-hinge, median, upper-hinge, maximum) for the input data.

Usage

1
fivenum(x, na.rm = TRUE)

Arguments

x

numeric, maybe including NAs and +/-Infs.

na.rm

logical; if TRUE, all NA and NaNs are dropped, before the statistics are computed.

Value

A numeric vector of length 5 containing the summary information. See boxplot.stats for more details.

See Also

IQR, boxplot.stats, median, quantile, range.

Examples

1
fivenum(c(rnorm(100), -1:1/0))

msberends/certedata documentation built on Nov. 26, 2019, 5:19 a.m.