Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add calculated values to model objects #6

Open
2 tasks
grinnellm opened this issue Sep 2, 2022 · 0 comments
Open
2 tasks

Add calculated values to model objects #6

grinnellm opened this issue Sep 2, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@grinnellm
Copy link
Contributor

grinnellm commented Sep 2, 2022

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.

@grinnellm grinnellm added the enhancement New feature or request label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants