checkNulls: Confirm that the null model functions are in suitable format

Description Usage Arguments Details Value References Examples

View source: R/checkNulls.R

Description

Utility function. Creates a list of null models, either those defined in defineNulls or a named list of null model functions.

Usage

1
checkNulls(x, new_ = FALSE)

Arguments

x

Optional. If not provided, defines the nulls as those in defineNulls. Else either a character vector or a named list of functions, depending on whether new_ is set to TRUE or FALSE. See runNulls.

new_

Whether or not new nulls are being defined on the fly. Default is FALSE. Set to TRUE if a new null is being used.

Details

A few quick checks to confirm the null model functions are input in suitable format.

Value

A list of functions.

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

Examples

1

eliotmiller/metricTester documentation built on Dec. 16, 2019, 12:39 p.m.