Description Usage Arguments Details Value Author(s) References See Also Examples
This function calculates all (or a subset) of the Structure and Functioning 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 5 | allStructure(X, X_length, LSI.group, LFI.group, max.length = 85,
large.fish = 35, guild.groups, condition.groups, ratio.groups,
species.table, speciesinfo.table, LenWt.table, 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 |
X_length |
A dataframe of fishery independent data derived from research
vessel survey data or model output, with columns |
LSI.group |
A character string indicating the species group for which to
calculate the Large Species Indicator. Must be set to |
LFI.group |
A character string indicating the species group for which to
calculate the Large Fish Indicator. Must be set to |
max.length |
The threshold for large species (cm). Default is
|
large.fish |
Threshold for large fish (cm). Default is |
guild.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 |
condition.groups |
A vector indicating the species groups for which to
calculate Fulton's community condition factor. Each entry must be a
character string matching the name of a column in |
ratio.groups |
A dataframe with two columns, which must be named
|
species.table |
A table where the column names match the entries in
|
speciesinfo.table |
A table with columns |
LenWt.table |
A table of annual length at weight data with 5 columns.
|
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 structure_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 structure_export.id.csv. Default is
|
This function calculates the Structure and Functioning indicators: Biomass, Biomass Ratio(s), Large Species Indicator, Trophic Level of the Community, Large Fish Indicator, Mean Length (weighted by biomass and abundance), and Community Condition. 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 is used to calculate the indicator
(e.g., BIOMASS
or ABUNDANCE
). Here, BIOMASS
is used to
calculate Biomass, Biomass Ratio(s), Large Species Indicator, Large Fish
Indicator, Trophic Level of the Community, and Mean Length weighted by
biomass. ABUNDANCE
is used to calculate Mean Length weighted by
abundance and Community Condition. 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 ecosystem structure and function indicators: biomassRatio
,
communityCondition
,
largeFishIndicator
,
largeSpeciesIndicator
,
meanTLCommunity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Compile data
data(X)
data(X_length)
data(species.table)
data(species.info)
data(Length_Weight)
# Species groups of interest
ratio.groups <- data.frame(rbind(c("PELAGIC", "GROUNDFISH"), c("PREDATORS", "ALL")))
names(ratio.groups) <- c("group1", "group2")
trophicguild.groups <- c("LBENTHIVORE", "MBENTHIVORE", "PISCIVORE", "PLANKTIVORE",
"ZOOPISCIVORE")
condition.groups <- c("FINFISH", "LBENTHIVORE", "MBENTHIVORE", "PISCIVORE",
"PLANKTIVORE", "ZOOPISCIVORE")
# Calculate raw indicators
allStructure(X = X, X_length = X_length,
LSI.group = "ALL", LFI.group = "ALL",
max.length = 85, large.fish = 35,
guild.groups = trophicguild.groups, condition.groups = condition.groups,
ratio.groups = ratio.groups,
species.table = species.table, speciesinfo.table = species.info,
LenWt.table = Length_Weight,
years = c(2014:2019), raw = TRUE, std = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.