library(hatchR)
# vector of temperatures
temperature <- c(2, 5, 8, 11, 14)
# vector of days to hatch
days_to_hatch <- c(194, 87, 54, 35, 28)
bt_hatch_mod <- fit_model(
temp = temperature,
days = days_to_hatch, species = "sockeye", development_type = "hatch"
)
Run the code above in your browser using DataLab