as.inat

0th

Percentile

Coerce occurrence keys to iNaturalist id objects

Coerce occurrence keys to iNaturalist id objects

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

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

...

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

Value

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

See Also

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

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