effect {lemna} | R Documentation |
Effects on biomass
Description
Two endpoints are calculated which describe the effects on biomass:
-
BM
, percent effect on biomass at the last time step of the simulation -
r
, percent effect on the average growth rate of biomass
Usage
effect(...)
## Default S3 method:
effect(init, times, param, envir, duration, ...)
## S3 method for class 'lemna_scenario'
effect(x, init, times, param, envir, duration, ...)
Arguments
... |
additional parameters passed on to |
init |
initial state of the model variables |
times |
numeric vector, output times for which model results are returned |
param |
named list, Lemna model parameters |
envir |
named list, contains time series data for each of the five environmental variables |
duration |
optional |
x |
a |
Value
numeric
, effect on biomass in percent (%) [0,100]
Methods (by class)
-
effect(default)
: All scenario parameters supplied as arguments -
effect(lemna_scenario)
: Scenario parameters supplied as alemna_scenario
object
Examples
# effects in sample scenario
effect(metsulfuron)
# effects with modified environmental data
myenvir <- metsulfuron$envir
myenvir$tmp <- 20 # increase to 20°C
myenvir$conc <- 0.3 # constant exposure of 0.3 ug/L
effect(metsulfuron, envir=myenvir)
# calculate effects for the first seven days
effect(metsulfuron, duration=7)