search_checklist: Search Catalogue of Life China checklist

Description Usage Arguments Details Value Author(s) Examples

View source: R/search_checklist.R

Description

Get checklist via species or infraspecies ID.

Usage

1
search_checklist(query = NULL, mc.cores = 2)

Arguments

query

string One or more queries, see search_family_id and search_taxon_id for more details.

mc.cores

The number of cores to use, i.e. at most how many child processes will be run simultaneously. The option is initialized from environment variable MC_CORES if set. Must be at least one, and parallelization requires at least two cores,see mclapply for details.

Details

Visit the website http://sp2000.org.cn/api/document for more details.

Value

Catalogue of Life China list(s)

Author(s)

Liuyong Ding ly_ding@126.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
##Set your key
set_search_key("your apiKey",db = "sp2000")

##Search family IDs via family name
familyid <- search_family_id(query = "Anguillidae")

##Search taxon IDs via familyID
taxonid <- search_taxon_id(query = familyid$Anguillidae$data$record_id,name = "familyID")

#Download detailed lists via species or infraspecies ID
query <- taxonid[["3851c5311bed46c19529cb155d37aa9b"]][["data"]][["namecode"]]
x <- search_checklist(query = query)
str(x)

## End(Not run)

SP2000 documentation built on Nov. 8, 2020, 4:41 p.m.