Learn R Programming

cvasi (version 1.4.0)

set_mode_of_action: Set mode of action

Description

Updates the model parameter MoA to a certain value

Usage

set_mode_of_action(x, code)

set_moa(x, code)

Value

modified scenarios

Arguments

x

vector of scenarios

code

a code for a mode of action, refer to model description for details

Functions

  • set_moa(): Shorthand version

Examples

Run this code
# Set MoA=8, i.e. hazard during oogenesis
americamysis %>%
  set_mode_of_action(8) %>%
  effect(method="ode45")

# alternative approach using the parameter directly
americamysis %>%
  set_param(c(MoA=8)) %>%
  effect(method="ode45")

Run the code above in your browser using DataLab