Skip to Content

fivenum {stats}

Tukey Five-Number Summaries
Package: 
stats
Version: 
R 3.0.2

Description

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

Usage

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.

Values

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

Examples

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

Documentation reproduced from R 3.0.2. License: GPL-2.