View source: R/lbar_wrappers.R
getDomainLbar | R Documentation |
Calculates mean length (cm) sampling domain (year/region)
getDomainLbar(x, species, length_bins = NULL, merge_protected = TRUE, ...)
x |
A list containing three data.frames:
|
species |
A character vector containing scientific names, common names, or species codes for the desired species, or a combination thereof |
length_bins |
Numeric vector, data.frame, or keyword.
|
merge_protected |
A boolean indicating whether protected and unprotected areas should be merged (TRUE, the default), or should be calculated seperately (FALSE) |
... |
Optional filters to apply to the data:
|
A data.frame with:
The year
A code for the region: DRY TORT - Dry Tortugas, SEFCRI - Southeast Peninsular Florida, FLA KEYS - Florida Keys
The species code. The first three letters of the genus name and first four of the species name. If group is passed as an argument, SPECIES_CD will be changed to GROUP
Mean length (cm) at domain level
Variance of mean length
Number of primary sampling units sampled
Number of secondary sampling units sampled
The length class or bin. Only present if length_bins is not NULL. The notation, [lower, upper), is inclusive of the lower bound, but exclusive of the upper bound
The protected status. Only present if merge_protected is FALSE
getRvcData
getStratumDensity
## Get data for the Dry Tortugas in 2021 dt2021 = getRvcData(years = 2021, regions = "DRY TORT") ## Calculate density for Black Grouper getDomainLbar(dt2021, species = "Myc bona") ## Calculate mean length for Black Grouper above and below 60cm getDomainLbar(dt2021, species = "Mycteroperca bonaci", length_bins = 60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.