null_model_engine: Run null model

Description Usage Arguments Examples

View source: R/null_model_engine.R

Description

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

Usage

1
2
3
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

1
2
3
4
5
6
## Not run: 
# User defined function



## End(Not run)

Example output

Loading required package: MASS

EcoSimR documentation built on May 2, 2019, 7:26 a.m.