cleanPhylo | R Documentation |
Clean a phylogeny for single-tip-per-species analyses
cleanPhylo( tr, delim = "|", tipElem = 1, uniquesOnly = TRUE, strFixed = TRUE, gsubFromTo = c("_", " "), gsubFixed = TRUE, trimWhiteSpace = TRUE )
tr |
A |
delim |
Character delimiting species names from other info |
tipElem |
Integer indicating which element of the tip name contains the species |
uniquesOnly |
Boolean: retain only unique tip labels? Generally this is what you want |
strFixed |
Boolean: use |
gsubFromTo |
Character, |
gsubFixed |
Boolean: use |
trimWhiteSpace |
Boolean: trim leading and trailing whitespace? |
data(malus_tr) data(quercus_tr) data(tilia_tr) data(ulmus_tr) malus2 <- cleanPhylo(malus, delim = '_|_') quercus2 <- cleanPhylo(quercus) tilia2 <- cleanPhylo(tilia) ulmus2 <- ulmus ulmus2$tip.label <- paste('Ulmus', ulmus2$tip.label)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.