Learn R Programming

SP2000 (version 0.2.0)

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

Description

Checklist lists convert data frame.

Usage

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

Examples

Run this code
# 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")
# }

Run the code above in your browser using DataLab