knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

ypr

Lifecycle: stable R-CMD-check codecov License: MIT CRAN status CRAN Downloads

Introduction

ypr is an R package that implements equilibrium-based yield per recruit methods. Yield per recruit methods can used to estimate the optimal yield [@walters_fisheries_2004] of a fish population with one or more ecotypes. The yield can be based on the number of fish caught (or harvested) or biomass for all fish or just large (trophy) individuals.

The key life history parameters are

and in the case of ecotypes

The calculations do not account for stochasticity, predator-prey dynamics, angler responses or density-dependent growth.

Installation

To install the latest release from CRAN

install.packages("ypr")

To install the developmental version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/ypr")

Demonstration

Schedule

library(ypr)
population <- ypr_population(Rk = 5, Ls = 50, Rmax = 100, rho = 0.6)
ypr_plot_schedule(population, x = "Length", y = "Spawning")
ypr_tabulate_schedule(population)

Fish

ypr_plot_fish(population, color = "white")
ypr_tabulate_fish(population)

Stock-Recruitment

ypr_plot_sr(population)
ypr_tabulate_sr(population)

Yield

ypr_tabulate_yield(population)
ypr_plot_yield(population)

Information

For more information see the Get Started vignette.

Interaction

To interactively explore the effects of altering individual parameters on the schedule, stock-recruitment and yield see the ypr shiny app.

A screenshot of the yield from the ypr shiny app

Creditation

Development of ypr was partially supported by the Habitat Conservation Trust Foundation and the Ministry of Forests, Lands and Natural Resource Operations.

The hex was designed by The Forest.

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

Please note that the ypr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms

References



poissonconsulting/ypr documentation built on April 4, 2023, 8:35 p.m.