Skip to contents

License: GPL v3 CRAN version CRAN Downloads GitHub release DOI

TropFishR is a collection of fish stock assessment methods for length-frequency and age-based data, aimed at data-poor fisheries. It implements the methods of the FAO manual “Introduction to tropical fish stock assessment” by Sparre and Venema (1998, 1999), and the examples in the help files reproduce the manual’s worked examples. In addition, it includes newer length-based methods, such as electronic length-frequency analysis with simulated annealing and a genetic algorithm (ELEFAN_SA, ELEFAN_GA; Taylor and Mildenberger 2017) and bootstrapped ELEFAN for the uncertainty of the growth parameters (ELEFAN_GA_boot, ELEFAN_SA_boot; Schwamborn et al. 2019).

Website: https://tokami.github.io/TropFishR/

Installation

Install the released version from CRAN:

install.packages("TropFishR")

Or the development version from GitHub:

# install.packages("remotes")
remotes::install_github("tokami/TropFishR")

Getting started

Functions take a length-frequency data object (class lfq), add their results to it and return it, so that an assessment can be built up step by step: growth (e.g. ELEFAN_GA), mortality (M_empirical, catchCurve), stock size (VPA) and yield per recruit (predict_mod). For example, to estimate the growth parameters of a synthetic data set:

library(TropFishR)
data(synLFQ7)

lfq <- lfqModify(synLFQ7, bin_size = 4)
res <- ELEFAN_GA(lfq, MA = 7, seasonalised = TRUE, maxiter = 50)
res$par
plot(res, Fname = "rcounts")

The articles on the website explain each step in detail:

Changes between versions are listed in the changelog.

Citation

Please cite TropFishR as described by citation("TropFishR").

Questions and issues

Please report bugs and ask questions on GitHub issues.

References

  1. Sparre, P., Venema, S.C., 1998. Introduction to tropical fish stock assessment. Part 1. Manual. FAO Fisheries Technical Paper, (306.1, Rev. 2). 407p. link
  2. Sparre, P., Venema, S.C., 1999. Introduction to tropical fish stock assessment. Part 2. Exercises. FAO Fisheries Technical Paper, (306.2, Rev. 2). 94p. link
  3. Mildenberger, T. K., Taylor, M. H., Wolff, M., 2017. TropFishR: an R package for fisheries analysis with length-frequency data. Methods in Ecology and Evolution, 8: 1520-1527. doi:10.1111/2041-210X.12791
  4. Taylor, M. H., Mildenberger, T. K., 2017. Extending electronic length frequency analysis in R. Fisheries Management and Ecology, 24: 330-338. doi:10.1111/fme.12232
  5. Schwamborn, R., Mildenberger, T. K., Taylor, M. H., 2019. Assessing sources of uncertainty in length-based estimates of body growth in populations of fishes and macroinvertebrates with bootstrapped ELEFAN. Ecological Modelling, 393: 37-51. doi:10.1016/j.ecolmodel.2018.12.001