check_data: Test the format of data entry.

View source: R/estimateEM.R

check_dataR Documentation

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)


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.