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

trait_correlation_threshold

threshold for trait correlation. Default to 0.9.

Value

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


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.