View source: R/make.simmap.R View source: R/ancThresh.R
to.matrix | R Documentation |
Creates a binary matrix, normally from a factor.
to.matrix(x, seq)
x |
a vector of characters. |
seq |
the sequence for the columns in the output matrix. |
This function takes a vector of characters or a factor and computes a binary matrix.
Primarily designed to be used internally by make.simmap
and rerootingMethod
.
A binary matrix of dimensions length(x)
by length(seq)
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.