checkMetrics: Confirm that the metric functions are in suitable format
Description
Utility function. Creates a list of functions, either those defined in defineMetrics
or a named list of metric functions.
Usage
checkMetrics(x, new_ = FALSE)
Arguments
x
Optional. If not provided, defines the metrics as those in defineMetrics. Else
either a character vector or a named list of functions, depending on whether new_ is
set to TRUE or FALSE. See calcMetrics.
new_
Whether or not new metrics are being defined on the fly. Default is FALSE.
Set to TRUE if a new metric is being used.
Value
A list of functions.
Details
A few quick checks to confirm the metric functions are input in suitable
format.
References
Miller, E. T., D. R. Farine, and C. H. Trisos. 2016. Phylogenetic community
structure metrics and null models: a review with new methods and software.
Ecography DOI: 10.1111/ecog.02070