as.ala: Coerce occurrence keys to ALA id objects

View source: R/as.ala.R

as.alaR Documentation

Coerce occurrence keys to ALA id objects

Description

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

## Not run: 
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])

## End(Not run)

spocc documentation built on March 31, 2023, 9:59 p.m.