Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/resourcePotential.R
This function calculates the Biomass or Abundance of a pre-defined group of species for j areas and i years.
1 2 | resourcePotential(X, groups, species.table = NULL, metric = "BIOMASS",
years)
|
X |
A dataframe of fishery independent data derived from research vessel
survey data or model output, with columns |
groups |
A vector indicating the species group(s) for which to calculate
the indicator. If |
species.table |
A table where the column names match the entries in
|
metric |
A character string indicating which column in |
years |
A vector of years for which to calculate indicator. |
This indicator reflects temporal dynamics of species groups.
Returns a dataframe with columns ID
and YEAR
, and a
column metric_group
(e.g., BIOMASS_FINFISH
) for each entry in
groups
.
If there is no data for a given year, the indicator value will be NA
for that year.
Danielle Dempsey Danielle.Dempsey@dfo-mpo.gc.ca, Adam Cook, Catalina Gomez, Alida Bundy
Bundy A, Gomez C, Cook AM. 2017. Guidance framework for the selection and evaluation of ecological indicators. Can. Tech. Rep. Fish. Aquat. Sci. 3232: xii + 212 p.
Other resource potential indicators: allPotential
,
fishingInBalance
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Compile data
data(X)
data(species.table)
# Calculate total abundance and biomass
resourcePotential(X, groups = "ALL", metric = "ABUNDANCE", years = c(2014:2019))
resourcePotential(X, groups = "ALL", metric = "BIOMASS", years = c(2014:2019))
# Calculate biomass of trophic guilds
trophicguild.groups <- c("LBENTHIVORE", "MBENTHIVORE", "PISCIVORE", "PLANKTIVORE", "ZOOPISCIVORE")
resourcePotential(X, groups = trophicguild.groups,
species.table = species.table, metric = "BIOMASS", years = c(2014:2019))
# Calculate biomass of fished groups
resource.groups <- c("ALL", "CLUPEIDS", "FINFISH", "FLATFISH", "FORAGE", "GADOIDS", "GROUNDFISH")
resourcePotential(X, groups = resource.groups, species.table = species.table,
metric = "BIOMASS", years = c(2014:2019))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.