Description Usage Arguments Value Examples
Calculates a range of freshwater invertebrate biotic indices in use in the UK (based on family level identification). Currently calculates BMWP (N-taxa and ASPT), Whalley revised BMWP, Whalley habitat specific BWMP (riffle, pool and riffle/pool), LIFE, PSI, WHPT (presence-absence and abundance-weighted) and AWIC. For details of these indices see the vignette.
1 |
df |
A dataframe containing list of taxon names and their abundances
in samples, along with sample identifiers. Default format is for taxon
names to be in the first column and sample abundances in subsequent
columns with identifers as column headers. See built-in |
index |
A choice of index to be calculated. Defaults to |
type |
Indicates type of data being processed. Options are "num" for numeric data, "log" for integer log abundance categories (1-5) or "alpha" for alphabetic abundance categories (A-E). Default value is "num". |
A data frame consisting of columns of index values with samples in rows. The number of columns returned depends on the index selected.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # use the built-in River Almond dataset, numeric abundances
# calculate the BMWP index for this dataset
# 'index' and 'type' do not have to specified as defaults are used
# ("BMWP" and "num")
calcindex(almond)
# calculate the PSI index for this dataset
# type does not have to specified as default is used ("num")
calcindex(almond, "PSI")
# calculate the WHPT abundance-weighted index for this dataset
calcindex(almond, "WHPT_AB")
# example of processing data in alphabetic log abundance categories
# using the 'type' argument
# 'braidburn' dataset contains alphabetic log category data
# see ?braidburn for details
# calculate the Whalley revised BMWP index (including N-taxa and ASPT)
calcindex(braidburn, "Whalley", "alpha")
# example of processing data in numeric log abundance categories
# using the 'type' argument
# 'greenburn' dataset contains numeric log category data
# see ?greenburn for details
# calculate the LIFE index for this dataset
calcindex(greenburn, "LIFE", "log")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.