Description Usage Arguments Value Note
View source: R/GenerateSpawningProbs.R
This function can be used to simulate daily spawning probability for a population of iteroparous or semelparous spawners based on a limited number of reproductive variables.
1 2 3 4 5 6 7 8 | GenerateSpawningProbs(
repro_start,
repro_end,
spawns_max_season,
spawn_int,
nReps = 1e+05,
matReturn = F
)
|
repro_start |
Onset of reproduction season in ordinal day (Jan 1 = 1 in non-leap year) [integer] |
repro_end |
End of reproduction season in ordinal day [integer] |
spawns_max_season |
Maximum number of spawns a female can have in a reproductive season [integer] |
spawn_int |
Spawning interval or days between spawning events [integer] |
nReps |
Number of individuals/reps used to generate simulation [integer] |
matReturn |
True or False controls if a matrix is output. Default is FALSE, TRUE is often used for visualization. [boolean] |
Daily spawning probability [vector]
Option: if(matReturn)=TRUE, output is a (nReps x (repro_end-repro_start)) binary matrix, where an entry of 1 in position i,j represents individual i spawning on day reproductive day j, useful for visualization
For iteroparous spawners, provide repro_start, repro_end, spawns_max_season, and spawn_int.
For semelparous spawners, provide repro_start, repro_end, and set spawns_max_season=1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.