Description Usage Arguments Details Value

Return random samples of the internal nodes of a phylogeny

1 2 |

`phy` |
A phylogeny that inherits class |

`n` |
Number of samples to take. Default is 1. |

`extract` |
Should sampled nodes be extracted as new
phylogenies? Default is |

`replace` |
Should sampling be conducted with replacement?
Default is |

`include.root` |
Should the root node be included as a canditate
for sampling? Default is |

`cache` |
If |

Sample weights are constructed so that each size of subclade has an equal probability of being sampled. e.g. The function is just as likely to sample a node with 2 terminal descendants as a node with 100 terminal descendants. Note, this does not mean that there is an equal probability of sampling a node with 2 - 10 descendants as there is of sampling a node with 100 - 200 descendants (there are still many more nodes with 2 - 10 descendants than there are nodes with 100 - 200 descendants).

Either a vector of node numbers (if `extract=FALSE`

) or
a list of `phylo`

objects (if `extract=TRUE`

).

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.