make.env: Generates environmental variables

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Code1.r

Description

Generates environmental variables used for generating species abundances. Environmental variables may be correlated, and may follow different distirubtions.

Usage

1
make.env(n, elen, emean, edistr, ecor, ndim)

Arguments

n

Number of samples to be generated.

elen

Range of the environmental variables. Single number or vector of length ndim.

emean

Mean of the environmental variables. Single number or vector of length ndim.

edistr

Distribution of the environmental variables. Currently 'uniform' and 'Gaussian' are supported.

ecor

Correlation matrix of the environmental variables supplied by user. Object generated by cor.mat.fun. If omitted environmental variables are not correlated.

ndim

Number of environmental variables to generate.

Value

Matrix of environmental variables. n rows and ndim columns.

Author(s)

Mathias Trachsel and Richard J. Telford

References

Minchin, P.R. (1987) Multidimensional Community Patterns: Towards a Comprehensive Model. Vegetatio, 71, 145-156.

See Also

cor.mat.fun

Examples

1
2
 
env.vars <- make.env(100,elen =rep(100,10),emean = rep(50,10), edistr ='uniform',ndim = 10)

palaeoSig documentation built on May 29, 2017, 9:11 a.m.