make_pop: Make population

View source: R/make_pop.R

make_popR Documentation

Make population

Description

Function used to seed initial age-structured population for simulation based on life-history characteristics. Uses an initial population seed, mortality estimates, and maximum age to create a starting population.

Usage

make_pop(species, max_age, nM, fM, n_init)

Arguments

species

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

max_age

The maximum age of fish in the population(s). A numeric vector of length 1.

nM

Instantaneous natural mortality rate. A numeric vector of length for ("AMS" or a vector of length max_age for "ALE" and "BBH".

fM

Instantaneous fishing mortality rate. A numeric vector of length 1.

n_init

Initial population abundance (includes all age classes).

Value

A vector containing age-specific abundances with length = max_age.

Examples

# Example usage
## Not run: 
  
# Simulate a fish population at stable age distribution
  pop = make_pop(max_age, nM, fM, n_init)
  

## End(Not run)

danStich/anadrofish documentation built on Jan. 17, 2025, 9:46 a.m.