as.inat | R Documentation |
Coerce occurrence keys to iNaturalist id objects
as.inat(x, ...)
x |
Various inputs, including the output from a call to
|
... |
curl options; named parameters passed on to |
One or more in a list of both class inatkey and occkey
Other coercion:
as.ala()
,
as.gbif()
,
as.idigbio()
,
as.obis()
,
as.vertnet()
## 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])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.