Description Usage Arguments Value

View source: R/sim.binary.character.R

Generates binary state character distributions for the nodes of a phylogeny.

1 | ```
sim.binary.character(phy, pars, mu = 0L, nsim = 1L)
``` |

`phy` |
A phylogeny that inherits class |

`pars` |
A vector of transition rates. e.g. |

`mu` |
The state of the root node. |

`nsim` |
The number of simulations to perform. |

A matrix of character state distributions for the nodes of the phylogeny. Rows correspond to nodes and columns correspond to simulations. e.g. the i-th row and j-th column returns the character state for node i in simulation j.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.