View source: R/utils_data_handling.R
sample_to_quantile | R Documentation |
Transform data from a format that is based on predictive samples to a format based on plain quantiles.
sample_to_quantile(
forecast,
quantile_level = c(0.05, 0.25, 0.5, 0.75, 0.95),
type = 7
)
forecast |
A |
quantile_level |
A numeric vector of quantile levels for which quantiles will be computed. |
type |
Type argument passed down to the quantile function. For more
information, see |
a data.table in a long interval range format
sample_to_quantile(as_forecast(example_sample_discrete))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.