find_lw: A function to find length-weight relationship parameters a...

View source: R/find_lw.R

find_lwR Documentation

A function to find length-weight relationship parameters a and b

Description

A function to find estimates length-weight relationship parameters available on fishbase. It returns a list of means and standard deviations of a and b obtained from: Froese, R., J. Thorson and R.B. Reyes Jr., 2013. A Bayesian approach for estimating length-weight relationships in fishes. J. Appl. Ichthyol. (2013):1-7. Please cite Froese et al. (2013), when using these values. The default mirror for fishbase is set to "se", please change this if needed

Usage

find_lw(sp, mirror = "se")

Arguments

sp

A charachter value containing the species name

mirror

Mirror for fishbase (eg. "se", "org", "us", etc.) Default is

Value

A dataframe with means and standard deviations of length-weight parameters

Examples


library(fishflux)
library(dplyr)
# find length-weight relationship parameters for one species
find_lw("Lutjanus griseus")

# find length-weight relationship parameters for multiple species and return
#   in data.frame
lapply(c("Chlorurus spilurus","Zebrasoma scopas"), find_lw) %>%
  dplyr::bind_rows()



nschiett/fishflux documentation built on Dec. 14, 2024, 6:26 p.m.