as.bison

0th

Percentile

Coerce occurrence keys to bisonkey/occkey objects

Coerce occurrence keys to bisonkey/occkey objects

Usage
as.bison(x, ...)
Arguments
x

Various inputs, including the output from a call to occ() (class occdat), occ2df() (class data.frame), or a list, numeric, character, or bisonkey, or occkey.

...

curl options; named parameters passed on to crul::HttpClient()

Details

Internally, we use rbison::bison_solr(), same function we use internally within the occ() function. Although, we query here with the occurrenceID parameter to get the occurrence directly instead of searching for it.

Value

One or more in a list of both class bisonkey and occkey

See Also

Other coercion: as.ala(), as.ecoengine(), as.gbif(), as.idigbio(), as.inat(), as.obis(), as.vertnet()

Aliases
  • as.bison
Examples
# NOT RUN {
spnames <- c('Accipiter striatus', 'Setophaga caerulescens',
  'Spinus tristis')
out <- occ(query=spnames, from='bison', limit=2)
res <- occ2df(out)
(tt <- as.bison(out))
(uu <- as.bison(res))
as.bison(as.numeric(res$key[1]))
as.bison(res$key[1])
as.bison(as.list(res$key[1:2]))
as.bison(tt[[1]])
as.bison(uu[[1]])
as.bison(tt[1:2])
# }
Documentation reproduced from package spocc, version 1.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.