plot_summary {fqacalc} | R Documentation |
Calculate Plot-level Summary Statistics
Description
Input a transect with one or more plots (designated with a unique plot ID) as a single data frame and the output will be a data frame with plot-level species richness, native species richness, mean c, native mean c, FQI, native FQI, adjusted FQI, cover-weighted FQI, and native cover-weighted FQI.
Usage
plot_summary(
x,
key = "name",
db,
cover_class = "percent_cover",
plot_id,
allow_no_c = TRUE,
allow_non_veg = 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
|
cover_class |
a character string representing the cover classification used. Acceptable
cover classes are: |
plot_id |
A character string representing the column in |
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. |
allow_non_veg |
Boolean (TRUE or FALSE). If TRUE, allow input to contain un-vegetated ground and un-vegetated water. |
Value
A data frame where each row is a plot and columns contain FQI and cover-weighted FQI statistics.
Examples
transect <- transect <- data.frame(
acronym = c("ABEESC", "ABIBAL", "AMMBRE", "ANTELE", "ABEESC", "ABIBAL", "AMMBRE"),
cover = c(50, 4, 20, 30, 40, 7, 60),
plot_id = c(1, 1, 1, 1, 2, 2, 2))
plot_summary(transect, key = "acronym", db = "michigan_2014",
cover_class = "percent_cover", plot_id = "plot_id")