fivenum

0th

Percentile

Tukey Five-Number Summaries

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

Keywords
robust, distribution, univar
Usage
fivenum(x, na.rm = TRUE)
Arguments
x

numeric, maybe including NAs and \(\pm\)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.

Aliases
  • fivenum
Examples
library(stats) # NOT RUN { fivenum(c(rnorm(100), -1:1/0)) # }
Documentation reproduced from package stats, version 3.6.1, License: Part of R 3.6.1

Community examples

Looks like there are no examples yet.