Skip to contents

Make EWR results with achievement for ongoing use

Usage

prep_ewr_output(
  dat,
  type = "achievement",
  year_roll = "best",
  gaugefilter = NULL,
  scenariofilter = NULL,
  add_max = ifelse(type == "achievement", TRUE, FALSE)
)

Arguments

dat

EWR output dataframe (usually for all gauges and scenarios)

type

as in read_and_geo(), but with two special options:

  • 'achievement', calculates EWR achievement from 'yearly',

  • 'interevents', calculates some interevent values from all_interEvents or all_successful_interEvents For the EWR tool, the direct options are

  • 'summary',

  • 'yearly',

  • 'all_events',

  • 'all_successful_events',

  • 'all_interEvents',

  • 'all_successful_interEvents'

year_roll

character 'best' or number, specific number of years to check assessment for. 'Best' uses 10-year windows if possible. 1 uses the NSW method.

gaugefilter

subset of gauges, default NULL

scenariofilter

subset of scenarios, default NULL

add_max

logical, default TRUE only if type = 'achievement'. Add a 'MAX' scenario that passes all EWRs, usable as a reference

Value

a tibble with ewr_achieved