set_window: Set window length

View source: R/set_window.R

set_windowR Documentation

Set window length

Description

Exposure windows are defined as a period of time at the scale of the exposure series. As an example: if an exposure series has an hourly time step, a window length of 24 will consider the exposure within 24 hours intervals for effect calculation. The same applies for the window interval, i.e. the period between considered exposure windows. Set length=-1 to disable moving windows.

Usage

set_window(x, length, interval)

Arguments

x

vector of EffectScenario objects

length

numeric, length of exposure window to consider for effect calculation, set length=-1 to disable moving windows

interval

numeric, interval between considered exposure windows

Value

modified EffectScenario objects

Examples

# calculate the maximum effect for all windows of 10 days length
metsulfuron %>%
  set_window(length=10, interval=1) %>%
  effect()

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