Skip to contents

This function cleans a vector of taxa using Taxize and rgbif

Usage

Clean_Taxa(Taxons, WriteFile = F, Species_Only = T)

Arguments

Taxons

Vector of taxa to be cleaned.

WriteFile

logical if False (default) only returns a data frame, if TRUE will generate a folder (Results in the Working directory with a csv of the results)

Species_Only

logical, if TRUE (default) only species will be returned, if FALSE, it will return the highest possible taxonomic resolution

Value

A data frame with the cleaned taxa and their scores.

References

Chamberlain, Scott T., et al. "Taxize: an R package for taxonomic lookup and manipulation." Methods in Ecology and Evolution 6.12 (2015): 1451-1456. Chamberlain S, Barve V, Mcglinn D, Oldoni D, Desmet P, Geffert L, Ram K (2023). rgbif: Interface to the Global Biodiversity Information Facility API_ R package version 3.7.4

Examples


Cleaned <- Clean_Taxa(Taxons = c("Canis lupus", "C. lupus"))
#> Joining with `by = join_by(Taxa)`
#> Joining with `by = join_by(matched_name2)`