spinup.FLIBM: Spin up of inds in FLIBM object

View source: R/spinup.FLIBM.R

spinup.FLIBMR Documentation

Spin up of inds in FLIBM object

Description

Spin up of inds in FLIBM object

Usage

spinup.FLIBM(obj, nyearsmax = 20, nyearsslope = 5, monitor = TRUE)

Arguments

obj

FLIBM object

nyearsmax

numeric. Maximum number of years for spin-up (Default=20)

nyearsslope

numeric. Number of years for used to determin if spawning- stock biomass is in equilibrium (via linear model of log SSB) (Default=5).

monitor

logical. Should progression be printed.

Value

FLIBM object

Examples

stk <- create.FLIBM()
round(sum(stk$inds$wt * stk$inds$mat),3)
nrow(stk$inds)

stk <- spinup.FLIBM(stk)
round(sum(stk$inds$wt * stk$inds$mat, na.rm=TRUE),3)
nrow(stk$inds)




marchtaylor/FLIBM documentation built on Jan. 19, 2025, 10:56 p.m.