Learn R Programming

EcoSimR (version 0.1.0)

null_model_engine: Run null model

Description

This function drives all the different kinds of null models that can be run. It is the underlying engine.

Usage

null_model_engine(speciesData, algo, metric, nReps = 1000, saveSeed = FALSE, algoOpts = list(), metricOpts = list(), type = NULL, suppressProg = FALSE)

Arguments

speciesData
a dataframe for analysis that is compatable with the metrics and algorithms used.
algo
the algorithm used to randomize the data.
metric
the metric used to quantify pattern in the data.
nReps
the number of null assemblages to simulate.
saveSeed
Save the existing random seed to allow the user to reproduce the exact model results. The default value is FALSE, in which case the random number seed that is created is not stored in the output.
algoOpts
a list containing options for a supplied alogrithm.
metricOpts
a list containing options for a supplied metric.
type
The type of null model being run. If the null model is intended to be used with one of the existing modules, the type should be "size","niche", or "cooc". If the user is creating an entirely new null model, type should be set to NULL (the default value).
suppressProg
TRUE or FALSE. If true, display of the progress bar in the console is suppressed; default is FALSE. This setting is useful for creating markdown documents with `knitr`.

Examples

Run this code
## Not run: 
# # User defined function
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab