Skip to contents

The purpose of this function is to make age-specific recruit to spawn probabilities for rivers listed in get_rivers using built-in data sets for region-specific max_ages and maturity.

Usage

make_spawnrecruit(
  river,
  sex = c("male", "female"),
  species = c("ALE", "AMS", "BBH"),
  custom_habitat = NULL
)

Arguments

river

River for which spawn recruit probabilities are requested.

sex

Sex of fish. If not specified, then mean of male and female spawn recruit probabilities are returned.

species

Species for which rivers are returned Choices include American shad ("AMS"), alewife ("ALE"), and blueback herring ("BBH"). If species is "ALE" or "BBH" then this function calls make_spawnrecruit_rh.

custom_habitat

A dataframe containing columns corresponding to the those in the output from custom_habitat_template(). NEED TO ADD LINK.

Value

A numeric vector of length = length(max_age) depending on maximum age in the selected river (by life-history region and species).

References

Atlantic States Marine Fisheries Commission

Examples

make_spawnrecruit(river = "Upper Hudson", species = "BBH")
#>  [1] 0.00000000 0.00000000 0.00000000 0.06323636 0.68455549 0.89252531
#>  [7] 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000