GatherSynonyms: Gathers A List Of Taxonomic Synonyms

View source: R/GatherSynonyms.R

GatherSynonymsR Documentation

Gathers A List Of Taxonomic Synonyms

Description

This function goes through the hierarchy pages to collect taxonomic synonyms.

Usage

GatherSynonyms(MyHiers, output = c("detail", "counts"))

Arguments

MyHiers

A vector of filenames for downloaded hierarchy pages

output

Detail will return a data frame with each taxon and their taxonomic synonyms; counts will return a dataframe with each species and synonym counts.

Value

When output is set to detail, it returns a data frame where each row is the taxonomic unit that has a synonym, the hierarchy ID, and the synonym. When output="counts", each taxon is included whether it has a synonym or not. Rather than report the synonyms, it reports the number of synonyms for each.

Examples

## Not run: 
data(MyHiers)
GatherSynonyms(MyHiers, output="detail")
GatherSynonyms(MyHiers, "c")

## End(Not run) 

ropensci/reol documentation built on May 18, 2022, 6:33 p.m.