Description Usage Arguments Author(s)

Calculates cyclic pattern in recruitment deviations for a simulation. Ranges for Period and Amplitude are specified by user, and function produces cyclic pattern from within these ranges. Default is a sine wave.

1 2 | ```
SetRecruitCycle(x=1, Period, Amplitude, TotYears, Shape=c('sin',
'shift'))
``` |

`x` |
Simulation number. |

`Period` |
A vector of length 2 specifying the minimum and maximum values for the period of the recruitment cycles. e.g., if Period = c(10,10), then recruitment cycle occurs every 10 years exactly. |

`Amplitude` |
A vector of length 2 specifying the minimum and maximum values for the amplitude of the recruitment cycles. e.g., if Amplitude = c(0,0.5), the average recruitment will increase (or decrease) by a factor between 0 and 0.5 each cycle. |

`TotYears` |
A numeric value specifying the total number of years (should be nyears + proyears). |

`Shape` |
Specifies whether cyclic recruitment pattern is sine wave (default) or a step-change (shift). |

A. Hordyk

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.