KillAllDuplicates: KillAllDuplicates

Description Usage Arguments Details Value Author(s) Examples

Description

Remove duplicate taxa from the tree

Usage

1

Arguments

phy

a phylo object

Details

This finds any duplicate taxa and deletes ALL of them (so if a taxon appears on a tree twice, both instances are removed).

Value

returns a pruned phylo object

Author(s)

Brian O'Meara

Examples

1
2
3
4
phy <- read.tree(text="(((a,b),c),(d,(e,a)));")
sort(table(phy$tip.label), decreasing=TRUE)
phy.pruned <- KillAllDuplicates(phy)
sort(table(phy.pruned$tip.label), decreasing=TRUE)

bomeara/prepotol documentation built on May 12, 2019, 11:36 p.m.