Learn R Programming

ypr (version 0.4.0)

ypr_yields: Yields

Description

Calculates the yield(s) for a population based on one or more capture rates.

Usage

ypr_yields(
  population,
  pi = seq(0, 1, length.out = 100),
  Ly = 0,
  harvest = TRUE,
  biomass = FALSE
)

Arguments

population

An object of class ypr_population().

pi

A vector of probabilities of capture to calculate the yield for.

Ly

The minimum length (trophy) fish to consider when calculating the yield (cm).

harvest

A flag specifying whether to calculate the yield for harvested fish or captures.

biomass

A flag specifying whether to calculate the yield in terms of the biomass versus number of individuals.

Value

A numeric vector of the yields.

See Also

ypr_yield()

Examples

Run this code
# NOT RUN {
pi <- seq(0, 1, length.out = 30)
plot(pi, ypr_yields(ypr_population(), pi), type = "l")
# }

Run the code above in your browser using DataLab