Skip to content

Commit 2afad88

Browse files
Use 'stock' instead of 'taxa'
1 parent ede6a47 commit 2afad88

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: SOFIA
22
Version: 2.0.0
3-
Date: 2022-08-04
3+
Date: 2022-08-08
44
Title: Tools to Work with SOFIA Analyses
55
Authors@R: c(person("Rishi", "Sharma", role="aut"),
66
person("Arni", "Magnusson", role=c("aut","cre"), email="thisisarni@gmail.com"))

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SOFIA 2.0.0 (2022-08-04)
1+
# SOFIA 2.0.0 (2022-08-08)
22

33
* Added functions gitRepos(), gitClone(), and gitCloneAll() to list and clone
44
GitHub repositories.
@@ -7,6 +7,10 @@
77

88
* Added errors and warnings if stock names in catch/effort/priors don't match.
99

10+
* Simplified addDriors() so it requires only the 'stock' name, not the 'taxa'
11+
name. These names used to be identical, but only 'stock' will be used from now
12+
on.
13+
1014
* Improved plotCat() so it treats the first two columns of the input data frame
1115
as stock and year.
1216

R/addDriors.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#'
33
#' Add driors (data and priors) column to \sQuote{stocks} object.
44
#'
5-
#' @param stocks \code{tibble} containing \code{stock}, \code{taxa}, and
6-
#' \code{data}.
5+
#' @param stocks \code{tibble} containing \code{stock} and \code{data}.
76
#' @param priors data frame containing \code{stock}, \code{initial_state},
87
#' \code{initial_state_cv}, \code{terminal_state}, and
98
#' \code{terminal_state_cv}.
@@ -73,7 +72,7 @@ addDriors <- function(stocks, priors, same.priors, shape_prior=2,
7372
p <- if(same.priors) match("All", priors$stock)
7473
else match(stocks$stock[i], priors$stock)
7574
driors[[i]] <- format_driors(
76-
taxa = stocks$taxa[i],
75+
taxa = stocks$stock[i],
7776
shape_prior = 2,
7877
catch = stocks$data[[i]]$capture,
7978
years = stocks$data[[i]]$year,

man/addDriors.Rd

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)