Description Usage Arguments Value Note References Examples
Mostly this function applies to California-based sturgeon and mostly because in 2013 regulations changed from total length to fork length (cm). The CDFW now measures fork length, so this function facilitates conversion between years allowing for more consistent analytics.
1 | ConvertLength(data, tl, fl, sp, convertTo = c("TL", "FL"))
|
data |
Dataframe containing (at least) length (fork & total) & species. |
tl |
Field name (not quoted) in |
fl |
Field name (not quoted) in |
sp |
Field name (not quoted) in |
convertTo |
Character scalar option of either "TL" or "FL", the length type converting to. |
A numeric vector with length = nrow(data)
where data are total
length or fork length per choice in convertTo
. Where converting to
length already exists, that length it used rather than converting. If both
TL & FL are NA, then returned length is also NA.
Conversions use linear regression models (one for White Sturgeon another for Green Sturgeon). See References for source of models.
FL_{WST}=-1.2162 + (0.9036 * TL_{WST})
TL_{GST}=-4.6131 + (1.1374 * FL_{GST})
coming soon for equations
1 | # coming soon
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.