Learn R Programming

rdiversity (version 2.0)

check_phypartition: check_phypartition

Description

check_phypartition() is used to validate partition matrices for use with phylogenies.

Usage

check_phypartition(tip_labels, partition)

Arguments

tip_labels

vector containing elements of class character.

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.