rstate | R Documentation |
Internal function for make.simmap
.
rstate(y)
y |
vector of probabilities. Must have names & should probably add to |
This function picks a random element in a vector according to the probability assigned that element. It returns the name. Uses rmultinom
.
A character or string.
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.