Learn R Programming

metricTester (version 1.3.6)

checkSimulations: Confirm that the spatial simulation functions are in suitable format

Description

Utility function. Creates a list of spatial simulations, either those defined in defineSimulations or a named list of simulation functions.

Usage

checkSimulations(x, new_ = FALSE)

Arguments

x

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

new_

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

Value

A list of functions.

Details

A few quick checks to confirm the spatial simulations are 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

Examples

Run this code
# NOT RUN {
checkSimulations(names(defineSimulations()))
# }

Run the code above in your browser using DataLab