Learn R Programming

rdiversity (version 2.0)

check_similarity: Check similarity matrix

Description

check_similarity() is used to validate similarity matrices.

Usage

check_similarity(similarity, partition)

Arguments

similarity

two-dimensional matrix of mode numeric; contains pair-wise similarity between types.

partition

two-dimensional matrix of mode numeric with rows as types (species), columns as subcommunities, and each element containing the relative abundance of types in each subcommunity relative to the metacommunity as a whole. In the phylogenetic case, this corresponds to the proportional abundance of historical species, which is calculated from the proportional abundance of terminal taxa

Value

Returns a two-dimensions matrix of mode numeric. If the similarity matrix was valid, this should be identical to that which was input as an argument.