prune2data | R Documentation |
Takes a phylo object and vector of names to be matched to tip labels and returns a pruned phylogeny containing only tip labels that match those in the vector.
prune2data(tree, species)
tree |
Phylogenetic tree of class 'phylo'. |
species |
Vector of names to be matched against tip labels of the tree. |
Returns a phylogenetic tree of the class 'phylo' containing only tips whose labels match the input vector (species)
Kevin Arbuckle
data(sample.data)
data(sample.tree)
tree<-prune2data(sample.tree,sample.data$species[1:10])
plot(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.