Learn R Programming

PhylogeneticEM (version 1.0.0)

check_data: Test the format of data entry.

Description

check_data tests if the data matrix has the right format, and if it is correctly ordered to match the tips names.

Usage

check_data(phylo, Y_data, check.tips.names)

Arguments

phylo
a phylogenetic tree, class phylo.
Y_data
matrix of data at the tips (pxntaxa)
check.tips.names
(bool) whether to check the tips names or not

Value

Y_data a re-ordered matrix of data (if necessary)