as.idigbio | R Documentation |
Coerce occurrence keys to idigbio objects
as.idigbio(x, ...)
x |
Various inputs, including the output from a call to |
... |
curl options; named parameters passed on to |
Internally, we use idig_view_records
, whereas we use
idig_search_records()
in the occ()
function.
One or more in a list of both class idigbiokey and occkey
Other coercion:
as.ala()
,
as.gbif()
,
as.inat()
,
as.obis()
,
as.vertnet()
## Not run:
spnames <- c('Accipiter striatus', 'Setophaga caerulescens',
'Spinus tristis')
out <- occ(query=spnames, from='idigbio', limit=2)
res <- occ2df(out)
(tt <- as.idigbio(out))
(uu <- as.idigbio(res))
as.idigbio(res$key[1])
as.idigbio(as.list(res$key[1:2]))
as.idigbio(tt[[1]])
as.idigbio(uu[[1]])
as.idigbio(tt[1:2])
library("dplyr")
bind_rows(lapply(tt, function(x) data.frame(unclass(x)$data)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.