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
cor.mat.fun(ndim, cors)
Value
Correlation matrix
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.