Skip to contents

This function ranks the base forecasts based on a specified quantity, recorded in the rank_quantity_col column. grouped by location and draw.

Usage

rank_sampled_trajectories(
  base_forecasts,
  location_col,
  draw_col,
  rank_quantity_col
)

Arguments

base_forecasts

A data frame containing the base forecasts.

location_col

The name of the column representing the location.

draw_col

The name of the column representing the draw.

rank_quantity_col

The name of the column representing the quantity to rank trajectories by.

Value

A data frame with the ranked base forecasts.