Learn R Programming

spocc (version 0.4.5)

inspect: Get more data on individual occurrences.

Description

Get more data on individual occurrences.

Usage

inspect(x, from = "gbif")

## S3 method for class 'data.frame': inspect(x, from = "gbif")

## S3 method for class 'occdat': inspect(x, from = "gbif")

## S3 method for class 'occkey': inspect(x, from = "gbif")

Arguments

x
The output from occ call, output from call to occ2df, or an occurrence ID as a occkey class.
from
(character) The data provider. One of gbif, bison, inat, antweb, ecoengine, or vertnet

Value

  • A list, with each slot named for the data source, and then within data sources is a slot for each taxon, named by it's occurrence ID.

Examples

Run this code
spnames <- c('Accipiter striatus', 'Carduelis tristis')
out <- occ(query=spnames, from=c('gbif','bison','ecoengine'),
   gbifopts=list(hasCoordinate=TRUE), limit=2)
res <- occ2df(out)
inspect(res)

out <- occ(query=spnames, from='gbif', gbifopts=list(hasCoordinate=TRUE), limit=4)
res <- occ2df(out)
inspect(res)

# from occkeys
key <- as.gbif(res$key[1])
inspect(key)
key <- as.antweb("amsat-94817")
inspect(key)

# idigbio		
spnames <- c('Accipiter striatus', 'Carduelis tristis')
out <- occ(query=spnames, from='idigbio', limit=20)
inspect(out)

Run the code above in your browser using DataLab