sol_fb_length_weight: Create allometric equation from Fishbase

View source: R/fishbase.R

sol_fb_length_weightR Documentation

Create allometric equation from Fishbase

Description

Experimental. Requires the rfishbase package to be installed.

Usage

sol_fb_length_weight(
  ...,
  input_properties,
  return_properties,
  worms = requireNamespace("worrms", quietly = TRUE)
)

Arguments

...

: arguments passed to rfishbase::length_weight

input_properties

character: an optional vector of properties (see link{sol_properties}). Only equations that take an input in input_properties will be returned

return_properties

character: an optional vector of properties (see link{sol_properties}). Only equations that return a value in return_properties will be returned

worms

logical: if TRUE, and if the worrms package is installed, try and find the AphiaID for the taxon in the World Register of Marine Species

Value

A tibble of equation(s)

See Also

sol_equation sol_equations

Examples

## Not run: 
 library(dplyr)
 eq <- sol_fb_length_weight("Electrona antarctica", input_properties = "standard length")
 x <- tibble(SL = 10) %>%
   mutate(SL = sol_set_property(SL, "standard length", with_units = "cm"))
 sol_allometry(x, eq)

## End(Not run)


SCAR/solong documentation built on Aug. 5, 2022, 9:04 p.m.