Description Usage Arguments Details See Also Examples
Return a tree with txnyms added to specified nodes
1 | setTxnyms(tree, txnyms)
|
tree |
|
txnyms |
named vector or list |
Returns a tree. Specify the taxonomic groups for nodes in a tree
by providing a vector or list named by node IDs. Takes output from searchTxnyms
.
Only letters, numbers and underscores allowed. To remove special characters use regular
expressions, e.g. gsub(['a-zA-Z0-9_'], '', txnym)
taxaResolve
, searchTxnyms
,
getNdsLng
, getNdLng
,
https://github.com/DomBennett/treeman/wiki/set-methods
1 2 3 4 5 6 7 8 9 | library(treeman)
data(mammals)
# let's change the txnym for humans
# what's its summary before we change anything?
summary(mammals[['Homo_sapiens']])
# now let's add Hominini
new_txnym <- list('Homo_sapiens'=c('Hominini', 'Homo'))
mammals <- setTxnyms(mammals, new_txnym)
summary(mammals[['Homo_sapiens']])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.