View source: R/13.0-bioenergetic-classes.R
| set_simulation_settings | R Documentation |
Updates the simulation configuration of a Bioenergetic object.
set_simulation_settings(x, initial_weight = NULL, duration = NULL)
x |
Bioenergetic object |
initial_weight |
Initial weight in grams |
duration |
Simulation duration in days (auto-detected if NULL) |
The Bioenergetic object x with
simulation_settings$initial_weight and/or
simulation_settings$duration updated, and fitted reset to
FALSE. If duration is NULL and none was previously
set, the duration is auto-detected from the maximum Day in
environmental or diet data.
bio <- Bioenergetic(
species_params = list(
consumption = list(CEQ = 1, CA = 0.303, CB = -0.275, CQ = 0.06)
),
species_info = list(common_name = "Example fish")
)
bio <- set_simulation_settings(bio, initial_weight = 50, duration = 365)
bio$simulation_settings$initial_weight
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.