Skip to content

Commit

Permalink
Pass effort to format_driors()
Browse files Browse the repository at this point in the history
  • Loading branch information
arni-magnusson committed Feb 13, 2022
1 parent a254850 commit f269d8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: SOFIA
Version: 1.0.2
Date: 2022-01-24
Version: 1.0.3
Date: 2022-02-14
Title: Tools to Work with SOFIA Analyses
Authors@R: c(person("Rishi", "Sharma", role="aut"),
person("Arni", "Magnusson", role=c("aut","cre"), email="[email protected]"))
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SOFIA 1.0.3 (2022-02-14)

* Improved addDriors() so effort data are passed to format_driors().




# SOFIA 1.0.2 (2022-01-24)

* Initial release.
2 changes: 1 addition & 1 deletion R/addDriors.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ addDriors <- function(stocks, priors, stocks.combined, shape_prior=2,
b_ref_type = "k",
terminal_state = priors$terminal_state[p],
terminal_state_cv = priors$terminal_state_cv[p],
effort = na.omit(stocks$data[[i]])[[stocks$taxa[i]]],
effort = na.omit(stocks$data[[i]])$effort,
effort_years = na.omit(stocks$data[[i]])$year,
growth_rate_prior = NA,
growth_rate_prior_cv = 0.2,
Expand Down

0 comments on commit f269d8b

Please sign in to comment.