Learn R Programming

ritis (version 0.5.4)

hierarchy: Get hierarchy down from tsn

Description

Get hierarchy down from tsn

Usage

hierarchy_down(tsn, wt = "json", raw = FALSE, ...)
hierarchy_up(tsn, wt = "json", raw = FALSE, ...)
hierarchy_full(tsn, wt = "json", raw = FALSE, ...)

Arguments

tsn
TSN for a taxonomic group (numeric). Required.
wt
(character) One of "json" or "xml". Required.
raw
(logical) Return raw JSON or XML as character string. Required. Default: FALSE
...
Curl options passed on to GET

Details

Hierarchy methods:
  • hierarchy_down: Get hierarchy down from tsn
  • hierarchy_up: Get hierarchy up from tsn
  • hierarchy_full: Get full hierarchy from tsn

Examples

Run this code
## Not run: 
# ## Full down
# hierarchy_down(tsn=161030)
# 
# ## Full up
# hierarchy_up(tsn=36485)
# 
# ## Full hierarchy
# hierarchy_full(tsn=37906)
# hierarchy_full(tsn=37906, raw = TRUE)
# hierarchy_full(100800, wt = "xml")
# ## End(Not run)

Run the code above in your browser using DataLab