genCycle: Generate cycle lines

View source: R/generateCycle.R

genCycleR Documentation

Generate cycle lines

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

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

genCycle(firstObs = 2009, simLength = 50)


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.