FUNCTION: Extract and modify the recruitment time series

FUNCTIONR Documentation

Extract and modify the recruitment time series

Description

Recruitment in number of fish is the first row of the 'stock.n' slot of an age-structured 'FLStock'. These convenience functions allow a clearer syntax when retrieving of altering the content of 'stock.nrec.age,', where 'rec.age' is usually the first age in the object.

Usage

## S4 method for signature 'FLStock'
rec(object, rec.age = as.character(object@range["min"]))

Arguments

object

An object of class 'FLStock'

rec.age

What age to extract, defaults to first one. As 'character' to select by name or as 'numeric' by position.

Value

RETURN Lorem ipsum dolor sit amet

Author(s)

The FLR Team

See Also

FLComp

Examples

data(ple4)
rec(ple4)
# Multiple recruitment by a factor of 2
rec(ple4) <- rec(ple4) * 2

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