Skip to contents

Return unique taxonomic names for connecting id to root.

Usage

getNdLng(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Returns a vector.

Examples


data(mammals)
# return human lineage
getNdLng(mammals, id = "Homo_sapiens")
#>  [1] "Mammalia"         "Theria"           "Eutheria"         "Boreoeutheria"   
#>  [5] "Euarchontoglires" "Primates"         "Haplorrhini"      "Simiiformes"     
#>  [9] "Catarrhini"       "Hominoidea"       "Hominidae"        "Homininae"