vert_id: Search by Vertnet occurrence ID

Description Usage Arguments Details Value Examples

View source: R/vert_id.R

Description

Search by Vertnet occurrence ID

Usage

1
vert_id(ids, compact = TRUE, messages = TRUE, ...)

Arguments

ids

(character) VertNet IDs, one or more. Required.

compact

(logical) Return a compact data frame. That is, remove empty columns. Default: TRUE

messages

(logical) Print progress and information messages. Default: TRUE

...

Curl arguments passed on to crul::HttpClient

Details

VertNet IDs can be a variety of things, some URIs (i.e., with http://...), while others start with urn.

Internally in this function we filter data to darwin core terms only. To see what terms we use, do readLines( system.file("extdata", "simple_dwc_terms.txt", package = "rvertnet")). Get in touch with us if these terms need correcting/are out of date. The terms are from https://github.com/tdwg/dwc/blob/master/dist/simple_dwc_horizontal.csv

Value

A list, with data frame of search results, and list of metadata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
vert_id(ids = "urn:catalog:CM:Herps:116520")
ids <- c("http://arctos.database.museum/guid/MSB:Mamm:56979?seid=1643089", 
         "urn:catalog:CM:Herps:116520",
         "urn:catalog:AUM:Fish:13271")
res <- vert_id(ids)
res$data$occurrenceid

out <- vertsearch(taxon = "aves", state = "california", limit = 5)
(ids <- out$data$occurrenceid)
res <- vert_id(ids)
identical(sort(res$data$occurrenceid), sort(ids))

## End(Not run)

rvertnet documentation built on May 14, 2021, 1:07 a.m.