Learn R Programming

lemna (version 1.0.2)

effect: 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(...)

# S3 method for default effect(init, times, param, envir, duration, ...)

# S3 method for lemna_scenario effect(x, init, times, param, envir, duration, ...)

Value

numeric, effect on biomass in percent (%) [0,100]

Arguments

...

additional parameters passed on to lemna() and deSolve::ode()

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 numeric, length of the simulated period to consider for effect calculation, period starts at the beginning of the simulation

x

a lemna_scenario object

Methods (by class)

  • effect(default): All scenario parameters supplied as arguments

  • effect(lemna_scenario): Scenario parameters supplied as a lemna_scenario object

Examples

Run this code
# 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)

Run the code above in your browser using DataLab