TaxonChildren: Gathers A List Of Taxonomic Parents and Offspring

TaxonChildrenR Documentation

Gathers A List Of Taxonomic Parents and Offspring

Description

This function goes through the hierarchy pages to collect taxonomic offspring and parantage.

Usage

TaxonChildren(MyHiers)

TaxonParents(MyHier)

Arguments

MyHiers

A vector or single filename for downloaded hierarchy pages

MyHier

A single filename for downloaded hierarchy pages

Value

TaxonChildren will report the primary offspring of a taxon if the hierarchy page reports this information. TaxonParents will return the list of taxonomic parentage

See Also

MakeTreeData

Examples

## Not run: 
# Simple example using Reol data:
data(MyHiers)
TaxonChildren(MyHiers)
TaxonParents(MyHiers[1])
  
# Species of Anolis off NCBI
data(MyHiers)
TaxonChildren(MyHiers)

# Example to get all Anolis species from NCBI
eolAnolis <- DownloadSearchedTaxa("Anolis", to.file=FALSE)
hierAnolis <- DownloadHierarchy(eolAnolis, to.file=FALSE, database="NCBI Taxonomy")
TaxonChildren(hierAnolis)

# Species of Anolis off The Reptile Database
eolAnolis <- DownloadSearchedTaxa("Anolis", to.file=FALSE)
repdbAnolis <- DownloadHierarchy(eolAnolis, to.file=FALSE, database="The Reptile Database")
TaxonChildren(repdbAnolis)

## End(Not run)

ropensci/reol documentation built on May 18, 2022, 6:33 p.m.