genCycle: Generate cycle lines

Description Usage Arguments Details Value Examples

View source: R/generateCycle.R

Description

This function generates cycle lines necessary to model Fraser River stocks exhibiting delayed density dependence (e.g. Lower Shuswap). Note that it is not a universal function - it can only generate four year cycles and assumes that the observed data begins after 1900.

Usage

1
genCycle(firstObs, simLength)

Arguments

firstObs

A numeric representing the first year of observed data.

simLength

A numeric representing the length of the simulation period.

Details

Depends on the helper function checkInteger.

Value

Returns a numeric vector representing cycle line IDs for output data with length(simLength).

Examples

1
genCycle(firstObs = 2009, simLength = 50)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.