tl: taxalight query: rapidly look up scientific names from a...

Description Usage Arguments Details Value See Also Examples

View source: R/tl.R

Description

taxalight query: rapidly look up scientific names from a local database

Usage

1
2
3
4
5
6
tl(
  x,
  provider = getOption("tl_default_provider", "itis"),
  version = tl_latest_version(),
  dir = tl_dir()
)

Arguments

x

character vector of either scientific names or taxonomic identifiers (with prefix). Can mix and match too.

provider

Abbreviation for a known naming provider. Provider data should first be imported with [tl_create]. Note: setting provider to "itis_test" is for testing purposes only, use "itis" for the full ITIS data. See details

version

version of the authority to use (e.g. four-digit year)

dir

storage location for the LMDB databases

Details

Naming providers currently recognized by taxalight are:

The default provider is itis, which can be reconfigured by setting tl_default_provider in [options].

Value

a data.frame in Darwin Core format with rows matching the acceptedNameUsageID or scientificName requested.

See Also

tl_create

Examples

1
2
3
4
5
6
7
 # slow initial import
sp <- c("Dendrocygna autumnalis", "Dendrocygna bicolor")
id <- c("ITIS:180092", "ITIS:179913")

## example uses "itis_test" provider for illustration only:
tl(sp, "itis_test")
tl(id, "itis_test")

taxalight documentation built on Sept. 14, 2021, 5:15 p.m.