Transform data from a format that is based on predictive samples to a format based on interval ranges
sample_to_range_long(
data,
range = c(0, 50, 90),
type = 7,
keep_quantile_col = TRUE
)
a data.frame in a long interval range format
a data.frame with samples
a numeric vector of interval ranges to extract
(e.g. c(0, 50, 90)
)
type argument passed down to the quantile function. For more
information, see quantile()
keep quantile column, default is TRUE