Coerce occurrence keys to ecoenginekey/occkey objects

Description

Coerce occurrence keys to ecoenginekey/occkey objects

Usage

1

Arguments

x

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

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
spnames <- c('Accipiter striatus', 'Carduelis tristis')
out <- occ(query=spnames, from='ecoengine', limit=2)
res <- occ2df(out)
(tt <- as.ecoengine(out))
(uu <- as.ecoengine(res))
as.ecoengine(res$key[1])
as.ecoengine(as.list(res$key[1:2]))
as.ecoengine(tt[[1]])
as.ecoengine(uu[[1]])
as.ecoengine(tt[1:2])

## End(Not run)