Find_ancestors: Find ancestors

View source: R/Find_ancestors.R

Find_ancestorsR Documentation

Find ancestors

Description

Find higher taxonomic levels for a given taxon (e.g., Class and Order for a given Family)

Usage

Find_ancestors(
  child_num,
  Database = FishLife::FishBase_and_RAM,
  ParentChild_gz = Database$ParentChild_gz
)

Arguments

child_num

row number of ParentChild_gz for which to find ancestors

ParentChild_gz

Matrix representing taxonomic tree for analyzed data

Value

vector of row numbers of ParentChild_gz for ancestors (including child_num)


James-Thorson/FishLife documentation built on Feb. 29, 2024, 3:47 a.m.