Learn R Programming

rdiversity (version 1.2.1)

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-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.