Learn R Programming

EcoCleanR (version 1.0.3)

ec_worms_synonym: Check Accepted Synonyms from WoRMs Taxonomy

Description

Check Accepted Synonyms from WoRMs Taxonomy

Usage

ec_worms_synonym(
  species_name,
  data,
  scientificName = "scientificName",
  verbose = TRUE
)

Value

A table with two columns, column one represent the accepted synonyms, and column two demonstrate the unique species names from the occurrence data base with the number of records tagged under species names.

Arguments

species_name

input species name.e.g. Mexacanthina lugubris

data

data table which has information of all occurrence data of the selected species

scientificName

default set to scientificName, this is a column in the data extracted from online sources, may have various synonyms of species_name.

verbose

default value as TRUE

Examples

Run this code
if (FALSE) {
species_name <- "Mexacanthina lugubris"
data <- data.frame(
  scientificName = "Mexacanthina lugubris",
  decimalLongitude = c(-120, -78, -110, -60, -75, -130, -10, 5),
  decimalLatitude = c(20, 34, 30, 10, 40, 25, 15, 35)
)
comparison <- ec_worms_synonym(
  species_name,
  data,
  scientificName = "scientificName",
  verbose = TRUE
)
print(comparison)
}

Run the code above in your browser using DataLab