cp_children: Children

Description Usage Arguments Value Examples

View source: R/cp_children.R

Description

Children

Usage

1
cp_children(dataset_key, taxon_id, ...)

Arguments

dataset_key

(character/integer/numeric) dataset identifier

taxon_id

(character/integer/numeric) taxon identifier

...

curl options passed on to crul::verb-GET

Value

list with two slots

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
chk <- function(x) {
  z <- tryCatch(crul::ok(x), error = function(e) e)
  if (inherits(z, "error")) FALSE else z
}
if (chk("https://api.catalogueoflife.org/version")) {
z <- cp_children(dataset_key=1000, taxon_id='1')
z
z$result
if (NROW(z$result) > 0) {
z$result$scientificName
z$result$created
}
}

rcol documentation built on July 3, 2021, 1:06 a.m.