Description Usage Arguments Value See Also Examples
View source: R/TaxonChildren.R
This function goes through the hierarchy pages to collect taxonomic offspring and parantage.
1 2 | TaxonChildren(MyHiers)
TaxonParents(MyHier)
|
MyHiers |
A vector or single filename for downloaded hierarchy pages |
MyHier |
A single filename for downloaded hierarchy pages |
TaxonChildren
will report the primary offspring of a taxon if the hierarchy page reports this information. TaxonParents
will return the list of taxonomic parentage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #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
## Not run:
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.