Learn R Programming

cvasi (version 1.4.0)

set_window: 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)

set_nowindow(x)

Value

modified EffectScenario objects

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

Functions

  • set_nowindow(): Disable moving windows

Examples

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

# Disable moving exposure windows
metsulfuron %>%
  set_nowindow() %>%
  effect()

Run the code above in your browser using DataLab