epx_mtw: Calculate EPx values for a series of moving time window

View source: R/epx.R

epx_mtwR Documentation

Calculate EPx values for a series of moving time window

Description

Calls epx() to calculate the EPx value (i.e. the multiplication factors of an exposure profile that cause x% of effect) for moving windows with length window_length that move timesteps defined by window_interval.

Usage

epx_mtw(
  x,
  level = c(10, 50),
  factor_cutoff = 1000,
  window_length = 7,
  window_interval = 1,
  ...
)

Arguments

x

a scenario

level

The target effect level of the effect, ie. the x of EPx.

factor_cutoff

above which cutoff is the EPx is not relevant

window_length

the length of the moving time window

window_interval

the interval that the moving time window moves

...

arguments passed to epx

Value

a tibble with five columns

  • window.start

  • window.end

  • endpoint

  • level

  • EPx

Examples

metsulfuron %>%
  set_window(length=7, interval=1) %>%
  epx_mtw()

cvasi documentation built on Sept. 23, 2024, 9:08 a.m.