Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/allBiodiversity.R
This function calculates all (or a subset) of the Biodiversity 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 6 7 8 9 10 11 12 13 14 15 |
X |
A dataframe of fishery independent data derived from research vessel
survey data or model output, with columns |
metric |
A character string indicating which column in |
groups |
A vector indicating the species group(s) for which to calculate
the indicators. If |
species.table |
A table where the column names match the entries in
|
TL.table |
A dataframe with columns |
percentiles |
The percentiles used to determine R1 and R2 for calculating
Kempton's Q. Default is |
minTL |
Minimum trophic level for species included to calculate Kempton's
Q. Default is |
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 biodiversity_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 biodiversity_export.id.csv. Default is
|
This function calculates the Biodiversity indicators: Species Richness, Shannon's Index of Diversity, Margalef's Species Richness, Pielou's Species Evenness, Hill's N1, Hill's N2, Heip's Evenness Index, and Kempton's Q. If trophic level data are not available to calculate Kempton's Q, the remaining Biodiversity indicators 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"
) and group (e.g., "ALL"
or "GROUNDFISH"
)
are used to calculate the indicator. Here, the same metric and group are
used to calculate each indicator. Defaults are metric = "ABUNDANCE"
and group = "ALL"
.
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, Adam Cook Adam.Cook@dfo-mpo.gc.ca, Catalina Gomez, Alida Bundy
Other biodiversity indicators:
heips()
,
hillN1()
,
hillN2()
,
kemptonQ()
,
margalef()
,
pielouEvenness()
,
shannon()
,
speciesRichness()
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.