Align incidence matrix and phylogenetic distance matrix
Source:R/prepare_incidence_matrix.R
align_phylopred_inputs.RdValidates both inputs and reorders the columns of incidence to match
the column order of phydist.
Value
A named list with:
- incidence
The incidence matrix with columns reordered to match
phydist.- phydist
The (unchanged) phylogenetic distance matrix.
Examples
incidence <- prepare_incidence_matrix(beetleTreeInteractions)
aligned <- align_phylopred_inputs(incidence, phy_dist)