Learn R Programming

metricTester (version 1.2.2)

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)

Arguments

x
Optional named list of metric functions. Else, defines the metrics as those defined in defineMetrics.

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. 2015. Phylogenetic community structure metrics and null models: a review with new methods and software. bioRxiv 025726.

Examples

Run this code
checkMetrics(defineMetrics())

Run the code above in your browser using DataLab