list_df: Catalogue of Life list(s) convert data frame

Description Usage Arguments Format Author(s) Source Examples

View source: R/list_df.R

Description

Checklist lists convert data frame.

Usage

1
list_df(x, db = c("colchina", "colglobal"))

Arguments

x

list Results returned by the function search_checklist and get_col_global.

db

character db = c("colchina","colglobal")

Format

A data frame with 19 variables:

ScientificName

The scientific name (the accepted name) includes the name and the date of the name

Synonyms

Synonyms name, Latin

ChineseName

Chinese name

CommonNames

Common name

Kingdom

Kingdom at taxonTree

Phylum

Phylum at taxonTree

Class

Class at taxonTree

Order

Order at taxonTree

Family

Family at taxonTree

Genus

Genus at taxonTree

Species

Species at taxonTree

Infraspecies

Infraspecies at taxonTree

Distribution

Distribution of species or infraspecies

Name

Full name of reviewer in English or Chinese

Email

Organization of the reviewer in English or Chinese

Address

Email address of the reviewer

Institution

Address of the reviewer in English or Chinese

References

References

Download

Download date

Author(s)

Liuyong Ding ly_ding@126.com

Source

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
##Set your key
set_search_key <- "your apiKey"

##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"]]
x1 <- search_checklist(query = query)
str(x1)
x1 <- list_df(x1,db = "colchina")

#Get Catalogue of Life Global checklist via species name
x2 <- get_col_global(query = c("Anguilla marmorata","Anguilla japonica",
                               "Anguilla bicolor","Anguilla nebulosa",
                               "Anguilla luzonensis"),
                               option = "name")
str(x2)
x2 <- list_df(x2,db = "colglobal")

## End(Not run)

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