no_exposure: Zero exposure

View source: R/class-ExposureSeries.R

no_exposureR Documentation

Zero exposure

Description

Creates an ExposureSeries with zero concentration. When setting the zero exposure, pay attention not to accidentally reset the output times of your scenario as the zero exposure series contains only a single time point. See the examples.

Usage

no_exposure()

Value

an S4 object of type ExposureSeries

See Also

set_noexposure()

Examples

# this will reset the output times of the sample scenario,
# simulate() will quit with an error
try(
  minnow_it %>%
    set_exposure(no_exposure()) %>%
    simulate()
)

# set zero exposure, but keep original output times
minnow_it %>%
  set_exposure(no_exposure(), reset_times=FALSE) %>%
  simulate()

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