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)

EcoSimR documentation built on May 19, 2017, 7:40 p.m.

Search within the EcoSimR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.