powered by
This function takes a vector of characters and computes a binary matrix. Primarily to be used internally by make.simmap and rerootingMethod.
make.simmap
rerootingMethod
to.matrix(x, seq)
A binary matrix of dimensions length(x) by length(seq).
length(x)
length(seq)
a vector of characters.
the sequence for the columns in the output matrix.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.