Description Usage Arguments Details Value Author(s) References See Also Examples
This function calculates all (or a subset) of the Resource Potential indicators for j areas and i years. The user can choose whether the function returns the indicator dataframe to the global environment, exports the dataframe to a .csv file, or both. The user can also choose whether the function returns the raw indicator values, the standardized (z-score) values, or both.
1 2 3 4 | allPotential(X, land, species.table, speciesinfo.table, resource.groups,
minTL = 0, TE = 0.1, base.start, base.end, years, raw = TRUE,
std = TRUE, glob.env = TRUE, export.path = NULL,
export.id = NULL)
|
X |
A dataframe of fishery independent data derived from research vessel
survey data or model output, with columns |
land |
A dataframe of commercial landings data with columns |
species.table |
A table where the column names match the entries in
|
speciesinfo.table |
A table with columns |
resource.groups |
A vector indicating the species groups for which to
calculate the resource potential. Each entry must be a character string
matching the name of a column in |
minTL |
The minimum trophic level of species to include to calculate FiB.
If |
TE |
Trophic efficiency, used to calculate FiB. Default is |
base.start |
Year indicating the beginning of the baseline period for
calculating FiB. The average landings and average mean trophic level of the
landings over the baseline period are used as baseline values to calculate
FiB. |
base.end |
Year indicating the end of the baseline period for calculating
FiB. The average landings and average mean trophic level of the landings
over the baseline period are used as baseline values to calculate FiB.
|
years |
A vector of years for which to calculate indicators. |
raw |
A logical value. If |
std |
A logical value. If |
glob.env |
Logical value indicating whether to return output to global
environment. Default is |
export.path |
File path indicating where to save a .csv file of
calculated indicators (named potential_export.id.csv; see below). If
|
export.id |
Character string to modify the name of the .csv file (if
export.path is specified), for example an area name or date of analysis. The
exported .csv file is named potential_export.id.csv. Default is
|
This function calculates the Resource Potential indicators: Abundance and Biomass of the community, Resource Potential of predefined species groups, and Fishing-in-Balance (FiB). If data are not available to calculate one or more of these indicators, a subset will be returned. See the help file for the individual functions for information on how each indicator is calculated.
Returns a dataframe with columns ID
, YEAR
, and
indicators corresponding to the arguments supplied to the function.
Standardized indicators are noted with _s
in the name.
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: fishingInBalance
,
resourcePotential
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Compile data
data(X)
data(land)
data(species.table)
data(species.info)
# Species groups of interest
resource.groups <- c("ALL", "CLUPEIDS", "FINFISH", "FLATFISH",
"FORAGE", "GADOIDS", "GROUNDFISH")
# Calculate standardized indicators
allPotential(X = X, land = land, species.table = species.table,
speciesinfo.table = species.info, resource.groups = resource.groups,
TE = 0.1, base.start = 2014, base.end = 2015, years = c(2014:2019),
raw = FALSE, std = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.