getNdsFrmTxnyms: Get IDs for nodes represented txnyms

Description Usage Arguments Details See Also Examples

View source: R/get-spcl-methods.R

Description

Return a list of IDs for any node that contains the given txnyms.

Usage

1
getNdsFrmTxnyms(tree, txnyms)

Arguments

tree

TreeMan object

txnyms

vector of taxonomic group names

Details

Returns a list. Txnyms must be spelt correctly.

See Also

taxaResolve, setTxnyms, searchTxnyms, getNdsLng, getNdLng

Examples

1
2
3
4
library(treeman)
data(mammals)
# what ID represents the apes?
getNdsFrmTxnyms(mammals, 'Hominoidea')

Example output

$Hominoidea
[1] "n2961"

treeman documentation built on July 8, 2020, 7:28 p.m.