mean_c {fqacalc}R Documentation

Calculate Mean C

Description

mean_c calculates the mean coefficient of conservatism for all species in the inventory or along the transect.

Usage

mean_c(x, key = "name", db, native = FALSE)

Arguments

x

A data frame containing a list of plant species. This data frame must have one of the following columns: name or acronym. For cover-weighted or relative functions, this data frame must also have a column called cover containing cover values and ideally a column containing plot IDs.

key

A character string representing the column that will be used to join the input data frame x with the regional FQA database. If a value is not specified, the default is "name". "name" and "acronym" are the only acceptable values for key.

db

A character string representing the regional FQA database to use. See db_names for a list of potential values and the fqadata R package where the databases are hosted.

native

Boolean (TRUE or FALSE). If TRUE, calculate metrics using only native species.

Value

A non-negative integer

Examples

plant_list <- crooked_island

#mean c of all species (native and introduced)
mean_c(x = plant_list, key = "acronym", db = "michigan_2014", native = FALSE)

#mean c of native species
mean_c(x = plant_list, key = "acronym", db = "michigan_2014", native = TRUE)

[Package fqacalc version 1.1.0 Index]