Return unique taxonyms for connecting ids
to root.
Examples
data(mammals)
# return human and gorilla lineages
getNdsLng(mammals, id = c("Homo_sapiens", "Gorilla_gorilla"))
#> $Homo_sapiens
#> [1] "Mammalia" "Theria" "Eutheria" "Boreoeutheria"
#> [5] "Euarchontoglires" "Primates" "Haplorrhini" "Simiiformes"
#> [9] "Catarrhini" "Hominoidea" "Hominidae" "Homininae"
#>
#> $Gorilla_gorilla
#> [1] "Mammalia" "Theria" "Eutheria" "Boreoeutheria"
#> [5] "Euarchontoglires" "Primates" "Haplorrhini" "Simiiformes"
#> [9] "Catarrhini" "Hominoidea" "Hominidae" "Homininae"
#>