
Five-number summary of a numeric vector, as a one-row data frame
Source:R/diagnostic_metrics.R
five_number.RdThe shape of a multi-site return. When a plateau of near-optimal combinations
is evaluated at a site that cannot release per-combination results, these six
numbers are what travels: the minimum and maximum give the whisker, the
quartiles the box, the median the point. The combination-to-value linkage is
discarded, which is what makes the summary safe to share – see
transport_plateau.
Value
A one-row data frame: n_sets, min, q1, median, q3, max.
An empty input gives n_sets = 0 and NA elsewhere.
Examples
five_number(c(0.81, 0.83, 0.84, 0.85, 0.88))
#> n_sets min q1 median q3 max
#> 1 5 0.81 0.83 0.84 0.85 0.88