Coerce occurrence keys to antwebkey/occkey objects

Share:

Description

Coerce occurrence keys to antwebkey/occkey objects

Usage

1
as.antweb(x)

Arguments

x

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

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
spp <- c("linepithema humile", "acanthognathus")
out <- occ(query=spp, from='antweb', limit=2)
res <- occ2df(out)
(tt <- as.antweb(out))
(uu <- as.antweb(res))
as.antweb(res$key[1])
as.antweb(as.list(res$key[1:2]))
as.antweb(tt[[1]])
as.antweb(uu[[1]])
as.antweb(tt[1:2])

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.