alignPoly {treenomial} | R Documentation |
Align various types of coefficient matrices
Description
Align various types of coefficient matrices
Usage
alignPoly(coefficientMatrices)
Arguments
coefficientMatrices |
a list of coefficient matrices of various sizes |
Details
Alignment depends on the type of coefficient matrix:
- “real”
the smaller matrices columns are prepended with zero columns to align with the max number of columns and the rows are appended with zero rows to match the max number of rows
- “yEvaluated”
the smaller vectors are appended with zeroes to match the max length vector
- “tipLabel”
the smaller matrices are appended with zeroes to match the max number of rows and columns
Value
the aligned list of coefficient matrices
Examples
library(treenomial)
library(ape)
differentSizeTrees <- c(rtree(2), rmtree(10,10))
coeffs <- treeToPoly(differentSizeTrees, numThreads = 0)
alignedCoeffs <- alignPoly(coeffs)
[Package treenomial version 1.1.4 Index]