addDriors | R Documentation |
Add driors (data and priors) column to ‘stocks’ object.
addDriors(stocks, priors, same.priors, shape_prior = 2, b_ref_type = "k", growth_rate_prior = NA, growth_rate_prior_cv = 0.2, ...)
stocks |
|
priors |
data frame containing |
same.priors |
whether to use the same priors for all stocks. |
shape_prior |
passed to |
b_ref_type |
passed to |
growth_rate_prior |
passed to |
growth_rate_prior_cv |
passed to |
... |
additional arguments passed to |
If same.priors = TRUE
then the priors where stock = All
are
used for all stocks.
If same.priors = FALSE
then the priors are read from stock-specific
rows in the priors
data frame.
A tibble
like stocks
but with the additional column
driors
.
Arni Magnusson.
format_driors
is the underlying function used to construct the
driors
column.
addEffort
adds an effort column to catch data.
SOFIA-package
gives an overview of the package.
## Not run: addDriors(stocks, priors, same.priors=TRUE) addDriors(stocks, priors, same.priors=FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.