View source: R/generationMean.R
genMean | R Documentation |
Calculate running mean of a vector over generation length.
genMean(vec, gen)
vec |
A numeric vector, typically of spawner abundances. |
gen |
A numeric representing generation length (years). |
Returns a numeric vector of the running mean
rec <- recMatrix[ , 1]
genMean(rec, gen = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.