Skip to contents

Coerce occurrence keys to ALA id objects

Usage

as.ala(x, ...)

Arguments

x

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

...

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

Value

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

See also

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

Examples

if (FALSE) { # \dontrun{
spnames <- c('Barnardius zonarius', 'Grus rubicunda', 'Cracticus tibicen')
out <- occ(query=spnames, from='ala', limit=2)
(res <- occ2df(out))
(tt <- as.ala(out))
as.ala(x = res$key[1])
} # }