Skip to contents

The purpose of this function is to query the maximum age in the selected river from built-in data set containing region-specific max_ages and.

Usage

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

Arguments

river

River for which maximum age is needed.

sex

Sex of fish. If not specified, then mean of male and female maximum ages is returned for American shad, or pooled sex data used for river_herring.

species

Species for which population dynamics will be simulated. Choices include American shad ("AMS"), alewife ("ALE"), and blueback herring ("BBH").

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 = 1 containing maximum age of fish in population.

References

Atlantic States Marine Fisheries Commission

Examples

make_maxage(river = "Susquehanna", species = "AMS")
#> [1] 13