load.data: Load and prepare data

Description Usage Arguments Value Examples

View source: R/inputFunctions.R

Description

Load and prepare data to run the assessment model using TMB requirements.

Usage

1
2
3
4
5
6
7
8
9
load.data(
  population = "harpeast",
  Amax = 20,
  years_of_prediction = 15,
  Fpast = "est",
  Fproj = "mean",
  catch_quota = c(0, 0),
  return_fec = F
)

Arguments

population

Choose which population to run the model on (harpwest,harpeast,hooded).

Amax

Maximum age group. Default is 20 years.

years_of_prediction

Number of years in the future to project the model. Default is 15 years.

Fpast

Which fecundity rate to use in past estimations. Fproj = "mean" uses mean value of observed fecundity rates. Otherwise available estimates (linearly interpolated) are used.

Fproj

Which fecundity rate to use in future projections. Fproj = "mean" uses mean value of observed fecundity rates. Otherwise a fixed Fproj can be set.

catch_quota

Catch quota for 0 and 1+animals to be used in future projections. catch_quota = "mean" uses mean value of observed catch for the last 5 years.

return_fec

Return entire fecundity table, including information on years of sampling. Useful for plotting etc.

Value

data List of loaded data ready for TMB.

Examples

1
load.data(population = "harpeast")

NorskRegnesentral/rSPAMM documentation built on Nov. 16, 2020, 10:58 p.m.