Learn R Programming

rosario (version 0.1.1)

temp_overlap_matrix: Pairwise temporal niche-overlap matrix

Description

Computes all pairwise overlaps among rows (biological identities) using the chosen index.

Usage

temp_overlap_matrix(mat, method = c("pianka", "czekanowski"))

Value

A square symmetric matrix of overlap values with row/colnames copied from mat. The first class of the object is set to the method name.

Arguments

mat

Numeric matrix (rows = biological identities, columns = ordered time intervals).

method

Overlap index to use: "pianka" or "czekanowski".

Details

For Czekanowski, supply a row-rescaled matrix (see rescale_matrix()) or use temp_overlap(), which handles rescaling.

See Also

temp_overlap(), rescale_matrix()

Examples

Run this code
temp_overlap_matrix(ex1, method = "pianka")
ex1_rescale <- rescale_matrix(ex1)
temp_overlap_matrix(ex1_rescale, method = "czekanowski")

Run the code above in your browser using DataLab