cor.mat.fun: Generates correlation matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Code1.r

Description

Generates a correlation matrix for the environmental variables generated in make.env and for correlated species optima in species. Only used when correlated environmental variables or optima are generated.

Usage

1
cor.mat.fun(ndim, cors)

Arguments

ndim

Number of environmental variables that are subsequently generated with make.env.

cors

List of correlations between environmental variables. Each element of the list consists of three numbers, the first two numbers indicate the variables that are correlated, the third number is the correlation coefficient. If correlations between two variables are omitted the correlation remains 0.

Value

Correlation matrix

Author(s)

Mathias Trachsel

See Also

make.env, species

Examples

1
2
correlations <- list(c(1,2,0.5),c(1,4,0.1),c(2,5,0.6))
cor.mat <-  cor.mat.fun(5,correlations)

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