Learn R Programming

rdiversity (version 1.0)

check_partition: Check partition matrix

Description

check_partition() is used to validate partition matrices.

Usage

check_partition(partition)

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.

Value

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