alignPoly | R Documentation |
Align various types of coefficient matrices
alignPoly(coefficientMatrices)
coefficientMatrices |
a list of coefficient matrices of various sizes |
Alignment depends on the type of coefficient matrix:
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
the smaller vectors are appended with zeroes to match the max length vector
the smaller matrices are appended with zeroes to match the max number of rows and columns
the aligned list of coefficient matrices
library(treenomial) library(ape) differentSizeTrees <- c(rtree(2), rmtree(10,10)) coeffs <- treeToPoly(differentSizeTrees, numThreads = 0) alignedCoeffs <- alignPoly(coeffs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.