Test if a list of taxa is descendant/ancestor of a given term

pk_is_descendant(taxon, candidates)

pk_is_ancestor(taxon, candidates)

Arguments

taxon

character. The taxon name

candidates

a list of taxa

Value

a list of TRUE/FALSE, indicating if the corresponding taxon in the candidate list is descendant/ancestor or not.

Examples

# NOT RUN {
pk_is_descendant("Halecostomi", c("Halecostomi", "Icteria", "Sciaenidae"))
pk_is_ancestor("Sciaenidae", c("Halecostomi", "Abeomelomys", "Sciaenidae"))
# }