Learn R Programming

SP2000 (version 0.2.0)

find_synonyms: Find synonyms via species name

Description

Find synonyms via species name from Catalogue of Life Global.

Usage

find_synonyms(query, mc.cores = 2)

Arguments

query

character species name,The function is similar to get_col_global.

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.

Value

object

Details

Visit the website http://webservice.catalogueoflife.org/col/webservice for more details.

References

https://github.com/lutteropp/SpeciesSynonymFinder/blob/master/find_synonyms.r

Examples

Run this code
# NOT RUN {
##Get Catalogue of Life Global checklist via species name
x1 <- get_col_global(query = c("Anguilla marmorata","Anguilla japonica",
                              "Anguilla bicolor","Anguilla nebulosa",
                              "Anguilla luzonensis"),
                               option = "name")
str(x1)

##full queries
x2 <- get_col_global(query = "Anguilla", response = "full")


##Find synonyms via species name
find_synonyms(query = c("Anguilla marmorata","Anguilla japonica",
                        "Anguilla bicolor","Anguilla nebulosa",
                        "Anguilla luzonensis"))
# }

Run the code above in your browser using DataLab