Skip to contents

The 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.

Usage

five_number(x)

Arguments

x

A numeric vector. Missing values are dropped.

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