
Set Environmental Data for Bioenergetic Objects
Source:R/13.0-bioenergetic-classes.R
set_environment.RdUpdates the environmental data component of a Bioenergetic object with new temperature information.
Value
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.
Examples
# \donttest{
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")
)
#> Bioenergetic object created for: Example fish
temp <- data.frame(Day = 1:365, Temperature = rep(15, 365))
bio <- set_environment(bio, temp)
# }