GenerateSpawningProbs: Generate Spawning Probabilities

Description Usage Arguments Value Note

View source: R/GenerateSpawningProbs.R

Description

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.

Usage

1
2
3
4
5
6
7
8
GenerateSpawningProbs(
  repro_start,
  repro_end,
  spawns_max_season,
  spawn_int,
  nReps = 1e+05,
  matReturn = F
)

Arguments

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]

Value

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

Note

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


npollesch/FishToxTranslator documentation built on May 23, 2021, 3:21 a.m.