powered by
Returns Tukey's five number summary (minimum, lower-hinge, median, upper-hinge, maximum) for the input data.
fivenum(x, na.rm = TRUE)
numeric, maybe including NAs and \(\pm\)Infs.
NA
Inf
logical; if TRUE, all NA and NaNs are dropped, before the statistics are computed.
TRUE
NaN
A numeric vector of length 5 containing the summary information. See boxplot.stats for more details.
boxplot.stats
IQR, boxplot.stats, median, quantile, range.
IQR
median
quantile
range
fivenum(c(rnorm(100), -1:1/0))
Run the code above in your browser using DataLab