species_richness | R Documentation |
species_richness
calculates the total number of species.
species_richness(x, key = "name", db, native = FALSE, allow_no_c = TRUE)
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. |
A non-negative integer
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.