survivors: Calculate the survivors of a stock to the next year.

View source: R/FLStock.R

survivorsR Documentation

Calculate the survivors of a stock to the next year.

Description

An FLStock object containing estimates of adundance at age ('stock.n') and harvest level at age ('harvest'), is used to bring forward the population by applying the total mortality at age ('z'). No calculation is made on recruitment, so abundances for the first age will be set as 'NA', unless a value is provided.

Usage

survivors(object, rec = NA)

Arguments

object

An FLStock with estimated harvest and abundances

rec

Value for recruitment, first age abundance, 'numeric' or 'FLQuant'.'

Value

The abundances at age of the survivors, 'FLQuant'.

Examples

data(ple4)
stock.n(ple4[, ac(2002:2006)])
survivors(ple4[, ac(2002:2006)])

flr/FLCore documentation built on May 4, 2024, midnight