check_similarity() is used to validate similarity matrices.
check_similarity(similarity, partition)two-dimensional matrix of mode numeric;
contains pair-wise similarity between types.
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
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.