Learn R Programming

scoringutils (version 0.1.4)

quantile_to_long: Pivot Quantile Forecasts From Wide to Long Format

Description

Given a data.frame that follows the structure shown in quantile_example_data_wide, the function outputs the same data in a long format as (as shown in quantile_example_data_long). This can be useful e.g. for plotting.

Usage

quantile_to_long(data)

Arguments

data

a data.frame following the specifications from eval_forecasts) for quantile forecasts. For an example, see quantile_example_data_wide)

Value

a data.frame in long format

Examples

Run this code
# NOT RUN {
wide <- scoringutils::quantile_example_data_wide
long <- scoringutils::quantile_to_long(wide)

# }

Run the code above in your browser using DataLab