You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start a new R script "calcs.R" and make functions to calculate some values:
Effective harvest rate (calc_harvest_rate())
Productivity and productivity rate (calc_productivity())
The input would be the models object as it has everything required for the calculations. Instead of returning a tibble, add these calculated values to the models objects (for major SARs), for example major_models[[1]]$calcs$hr in the same format as major_models[[1]]$mcmccalcs$sbt.quants (i.e., 5%, 50%, 95%, and MPD by year). Then use these calculated values to make figures and tables (and text in get_vars), instead of calculating them each time we need them.
Doing these calculations once would speed things up and be less prone to errors.
The text was updated successfully, but these errors were encountered:
Start a new R script "calcs.R" and make functions to calculate some values:
calc_harvest_rate()
)calc_productivity()
)The input would be the
models
object as it has everything required for the calculations. Instead of returning a tibble, add these calculated values to the models objects (for major SARs), for examplemajor_models[[1]]$calcs$hr
in the same format asmajor_models[[1]]$mcmccalcs$sbt.quants
(i.e., 5%, 50%, 95%, and MPD by year). Then use these calculated values to make figures and tables (and text in get_vars), instead of calculating them each time we need them.Doing these calculations once would speed things up and be less prone to errors.
The text was updated successfully, but these errors were encountered: