CA_cov_cor: Covariance or correlation matrix calculated from community...

Description Usage Arguments Value

View source: R/measures_for_abundance_matrices.R

Description

Calculates covariance or correlation matrix from a community abundance or incidence matrix where species are rows and sites are columns. Note: Before the calculation, species (rows) with zero occurrences, and sites (columns) with zero species are removed from m.

Usage

1
CA_cov_cor(m, transf = NULL, correlation = TRUE, method = "pearson")

Arguments

m

Community data matrix with species as rows and sites as columns. Can contain either incidences (1/0) or abundances (natural numbers).

transf

A transformation function to be applied to the community matrix. The default is no transformation. Other options from 'vegan' function 'decostand' are applicable.

correlation

Should correlations be returned (TRUE) or covariances (FALSE).

method

One of 'peason' (default), 'kendall', or 'spearman'. is the default.

Value

A dist object with the pairwise association values.


petrkeil/spasm documentation built on Jan. 15, 2021, 6:08 p.m.