get_col_page: Get Catalogue of Life (COL) Page

View source: R/col.R

get_col_pageR Documentation

Get Catalogue of Life (COL) Page

Description

See documentation at http://webservice.catalogueoflife.org/col/webservice.

Usage

get_col_page(id, format = "json", response = "full")

Arguments

id

(character) COL record ID.

format

(character) Result format: "json", "xml", or "php".

response

(character) Result type: "terse" (up to 500 results) or "full" (up to 50 results).

See Also

Other COL functions: build_col_scientific_name, get_col_search, parse_col_page, parse_col_search

Examples

s <- get_col_search("Malus domestica")
id <- parse_col_search(s, "ids")$ids[1]
pg <- get_col_page(id)
str(httr::content(pg))

falling-fruit/fruitr documentation built on Dec. 21, 2024, 8:32 p.m.