
Get Length-Weight Coefficients and Length Limits for Species
getLWCoeffs.RdRetrieves and summarizes length-weight relationship coefficients from FishBase and SeaLifeBase, and the length limits alerts 3 and 4 check against.
Usage
getLWCoeffs(
taxa_list = NULL,
asfis_list = NULL,
fb_version = "latest",
slb_version = "latest",
fao_areas = 51,
taxa_lengths = NULL
)Arguments
- taxa_list
Character vector of FAO 3-alpha codes
- asfis_list
ASFIS list data frame
- fb_version
FishBase release to read, e.g.
"25.04". Pinned ininst/config.ymlundermetadata:fishbase;"latest"is unsafe.- slb_version
SeaLifeBase release to read, e.g.
"24.07".- fao_areas
FAO major fishing areas to keep species from. Zanzibar, Kenya and Mozambique are all area 51 (Western Indian Ocean); set it from
metadata:fishbase:fao_areasin config when porting to another country.- taxa_lengths
The hub table of species lengths written by
coasts::enrich_taxa().
Value
A list with two elements:
lw - A data frame with length-weight coefficients:
catch_taxon - FAO 3-alpha code
n - Number of (a, b) records aggregated
lw_a - Geometric mean of parameter 'a' across studies
lw_b - Arithmetic mean of parameter 'b' across studies
ml - The length limits, one row per
catch_taxon:min_lengthandmax_length_75in cm, fromcoasts::get_length_limits()for fish and hand-set for the shellfish the shared rule leaves out.