rvertnet (version 0.5.0)

vert_id: Search by Vertnet occurrence ID

Description

Search by Vertnet occurrence ID

Usage

vert_id(ids, compact = TRUE, verbose = TRUE, ...)

Arguments

ids

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

compact

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

verbose

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

...

Curl arguments passed on to GET

Value

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

Details

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

References

http://bit.ly/vertnet-wiki

Examples

Run this code
# NOT RUN {
vert_id(ids = "urn:catalog:AUM:Fish:13271")
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

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

Run the code above in your browser using DataLab