View source: R/biomass_wrappers.R
getPSUBiomass | R Documentation |
Estimates biomass at the PSU level
getPSUBiomass( x, species, growth_parameters = NULL, 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 |
growth_parameters |
A data.frame or list of allometric growth parameters.
NOTE: using a list means that only one set of growth parameters will be used for all species, while passing in a data.frame will allow the function to lookup the growth_parameters for each species |
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:
|
The form of the allometric growth equation used in calculating biomass is:
W[kg] = (a*(L[cm]*10[mm/cm])^b)/1000[kg/g]
The 'a' and 'b' parameters provided in growth_parameters should be for converting from millimeters to grams, even though the final output is in kilograms.
A data.frame with:
The year
A code for the region: DRY TORT - Dry Tortugas, SEFCRI - Southeast Peninsular Florida, FLA KEYS - Florida Keys
A code for the stratum
A boolean indicating protected status: 1 - Protected, 2 - Unprotected
primary sample unit ID
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
Number of secondary sampling units sampled
Variance in average biomass per secondary sampling unit
Average biomass per secondary sampling unit
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
getRvcData
getDomainBiomass
getStratumTotalBiomass
## Get Data from 2006 in the Dry Tortugas dt2006 = getRvcData(years = 2006, region = "DRY TORT") ## Calculate biomass at each PSU for Red Grouper getPSUBiomass(dt2006, species = "Epi mori", growth_parameters = list(a = 1.13e-5, b = 3.035))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.