as.ecoengine

0th

Percentile

Coerce occurrence keys to ecoenginekey/occkey objects

Coerce occurrence keys to ecoenginekey/occkey objects

Usage
as.ecoengine(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 ecoenginekey, or occkey.

...

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

Value

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

See Also

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

Aliases
  • as.ecoengine
Examples
# NOT RUN {
spnames <- c('Accipiter striatus', 'Spinus tristis')
out <- occ(query=spnames, from='ecoengine', limit=2)
res <- occ2df(out)
(tt <- as.ecoengine(out))
(uu <- as.ecoengine(res))
as.ecoengine(res$key[1])
as.ecoengine(as.list(res$key[1:2]))
as.ecoengine(tt[[1]])
as.ecoengine(uu[[1]])
as.ecoengine(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.