Description Usage Arguments Details Value Author(s) References See Also Examples
This function calculates all (or a subset) of the Stability and Resistance 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 |
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 |
maxlength.group |
A character string indicating the species group for
which to calculate the mean maximum length of fish in the community. Must be
set to |
species.table |
A table where the column names match the entries in
|
speciesinfo.table |
A table with columns |
TL.grouping |
Size of the trophic level bin for which to aggregate
biomass when calculating Biomass per Trophic Level. For example, if
|
wind |
Window for the moving average used to calculate the Coefficient of
Variation of the Biomass. The first and last |
negative |
If |
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 stability_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 stability_export.id.csv. Default is
|
This function calculates the Stability and Resistance indicators: Biomass per Trophic Level, Intrinsic Vulnerability Index, Coefficient of Variation of the Biomass, Mean Lifespan, and Mean Maximum Length (weighted by biomass and abundance). 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.
Notes on indicator calculations: In the individual functions, the user
generally has control over which metric (e.g., BIOMASS
or
ABUNDANCE
) is used to calculate the indicator. Here, BIOMASS
is used to calculate Coefficient of Variation of the Biomass, Mean Lifespan,
Biomass per Trophic Level, and Mean Maximum Length weighted by biomass.
ABUNDANCE
is used to calculate Mean Maximum Length weighted by
abundance. See individual functions for more flexibility.
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 stability and resistance indicators: CVBiomass
,
IVILandings
, biomassPerTL
,
meanMaxAge
, meanMaxLength
1 2 3 4 5 6 7 8 9 10 | # Compile data
data(X)
data(land)
data(species.info)
data(species.table)
# Calculate raw and standardized indicators
allStability(X = X, land = land, maxlength.group = "FINFISH",
species.table = species.table, speciesinfo.table = species.info,TL.grouping = 1,
wind = 5, negative = FALSE, years = c(2014:2019), raw = TRUE, std = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.