Learn R Programming

rdiversity (version 1.0)

check_similarity: Check similarity matrix

Description

check_similarity() is used to validate similarity matrices.

Usage

check_similarity(partition, similarity)

Arguments

partition

two-dimensinal matrix of mode numeric with rows as types, columns as subcommunities, and elements containing relative abundances of types in subcommunities. In the case of phylogenetic metacommunities, these are the relative abundances of terminal taxa.

similarity

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

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.