Learn R Programming

rdiversity (version 2.0)

check_partition: Check partition matrix

Description

check_partition() is used to validate partition matrices.

Usage

check_partition(partition)

Arguments

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 partition matrix was valid, this should be identical to that which was input as an argument.