Usage
betaMetricsNnulls(tree, picante.cdm, optional.dists = NULL, regional.abundance = NULL, distances.among = NULL, randomizations = 2, cores = "seq", nulls, metrics)
Arguments
picante.cdm
A picante-style community data matrix with sites as rows, and
species as columns
optional.dists
A symmetric distance matrix can be directly supplied. This option
is experimental. Behavior depends on metric being used. If the metric in question
relies on the phylogenetic distance matrix from a call to cophenetic(tree), then this
optional distance matrix will be inserted instead.
regional.abundance
A character vector in the form "s1, s1, s1, s2, s2, s3, etc".
Optional, will be generated from the input CDM if not provided.
distances.among
A symmetric distance matrix, summarizing the distances among all
plots from the cdm. Optional, only used by some null models.
randomizations
The number of times the input CDM should be randomized and the
metrics calculated across it.
cores
This function can run in parallel. In order to do so, the user must
specify the desired number of cores to utilize. The default is "seq", which runs the
calculations sequentially.
nulls
Optional. If not provided, defines the nulls as all of those in
defineNulls. If only a subset of those is desired, then nulls should take
the form of a character vector corresponding to named functions from defineNulls.
The available nulls can be determined by running names(defineNulls()). Otherwise,
if the user would like to define a new null on the fly, the argument nulls can take
the form of a named list of new functions (nulls).
metrics
Optional. If not provided, defines the metrics as all of those in
defineBetaMetrics. If only a subset of those is desired, then metrics should take
the form of a character vector corresponding to named functions from defineBetaMetrics.
The available metrics can be determined by running names(defineBetaMetrics()).
If the user would like to define a new metric on the fly, the argument can take
the form of a named list of new functions (metrics).