View source: R/13.0-bioenergetic-classes.R
| set_environment | R Documentation |
Updates the environmental data component of a Bioenergetic object with new temperature information.
set_environment(x, temperature_data)
x |
Bioenergetic object |
temperature_data |
Data frame with Day and Temperature columns |
The Bioenergetic object x with its
environmental_data$temperature component replaced by
temperature_data (interpolated to fill missing days if needed),
and fitted reset to FALSE.
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")
)
temp <- data.frame(Day = 1:365, Temperature = rep(15, 365))
bio <- set_environment(bio, temp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.