# NOT RUN {
# 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))
# }
Run the code above in your browser using DataLab