species_richness {fqacalc} | R Documentation |
Calculate Number of Species
Description
species_richness
calculates the total number of species.
Usage
species_richness(x, key = "name", db, native = FALSE, allow_no_c = TRUE)
Arguments
x |
A data frame containing a list of plant species. This data frame
must have one of the following columns: |
key |
A character string representing the column that will be used to join
the input data frame |
db |
A character string representing the regional FQA database to use. See
|
native |
Boolean (TRUE or FALSE). If TRUE, calculate metrics using only native species. |
allow_no_c |
Boolean (TRUE or FALSE). If TRUE, allow species that are found in the regional FQA database but have not been assigned a C Values. If FALSE, omit species that have not been assigned C Values. |
Value
A non-negative integer
Examples
plant_list <- crooked_island
#number of species (native and introduced)
species_richness(x = plant_list, key = "acronym", db = "michigan_2014", native = FALSE)
#number of native species
species_richness(x = plant_list, key = "acronym", db = "michigan_2014", native = TRUE)