Learn R Programming

AMPLE

AMPLE provides three Shiny apps to explore how Harvest Control Rules (HCRs) work and how performance indicators can be used to select between them.

The three apps are:

  • Introduction to HCRs provides a simple overview to how HCRs work. Users are able to select their own HCR and step through its performance, year by year. Biological variability and estimation error are introduced.
  • Measuring performance builds on the previous app and introduces the idea of using performance indicators to evaluate HCR performance.
  • Comparing performance allows multiple HCRs to be created and tested, and their performance compared so that the preferred HCR can be selected.

Installation

You can install the released version of AMPLE from CRAN with:

install.packages("AMPLE")

Alternatively, you can get the latest version from the GitHub repository here by installing it with the devtools package.

devtools::install_github("PacificCommunity/ofp-sam-ample")

Usage

Load the library as usual:

library(AMPLE)

The apps can be launched by calling the appropriate function:

intro_hcr()
measuring_performance()
comparing_performance()

The apps are also hosted online at:

Vignettes

There are three vignettes that walk users through the app. These can be used in workshops etc to help learning.

You can access them from R using:

vignette("intro_hcr", package="AMPLE")
vignette("measuring_performance", package="AMPLE")
vignette("comparing_performance", package="AMPLE")

The vignettes are also accessible through the Shiny apps, under the ‘Information’ tab.

Copy Link

Version

Install

install.packages('AMPLE')

Monthly Downloads

322

Version

1.0.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Finlay Scott

Last Published

September 29th, 2023

Functions in AMPLE (1.0.2)

threshold

Evaluates a threshold harvest control rule
Stock module

stockParamsSetterUI
get_hcr_op

Evaluates the harvest control rule.
comparing_performance

'Comparing HCR Performance' app launcher
estimation_error

estimation_error
AMPLE

AMPLE: A package of Shiny apps that introduce Harvest Control Rules (HCR) for fisheries management.
get_hcr_ip

Get the input to the HCR
MP modules

mpParamsSetterUI
constant

Evaluates a constant harvest control rule
Stock

R6 Class representing a stock
intro_hcr

Introduction to HCRs app launcher
measuring_performance

Measuring performance app launcher
Stochasticity module

stochParamsSetterUI
assessment

assessment