ens_value: Economic value for an ensemble.

View source: R/ens_value.R

ens_valueR Documentation

Economic value for an ensemble.

Description

Economic value for an ensemble.

Usage

ens_value(
  .fcst,
  parameter,
  thresholds,
  groupings = "leadtime",
  show_progress = FALSE
)

Arguments

.fcst

A harp_fcst object with tables that have a column for observations, or a single forecast table.

parameter

The name of the column for the observed data.

thresholds

A numeric vector of thresholds for which to compute the economic value.

groupings

The groups for which to compute the economic value. See group_by for more information of how grouping works.

Value

A data frame with data grouped for the groupings column(s) and a nested column for the economic value with each row containing a data frame with columns: cl for cost loss, and value for the economic value. Use unnest to unnest to the nested column.


andrew-MET/harpPoint documentation built on Feb. 23, 2023, 1:06 a.m.