cleanTaxonomy: Clean taxonomic names

Description Usage Arguments Details Value Author(s) Examples

View source: R/cleanTaxonomy.R

Description

Removes NAs and subgenera from the genus column.

Usage

1
cleanTaxonomy(Data, Taxonomy = "genus")

Arguments

Data

A data frame of taxonomic ocurrences downloaded from the paleobiology database API.

Taxonomy

A character string

Details

Will remove NA's and subgenera from the genus column of a PBDB dataset. It can also be used on other datasets of similar structure to convert species names to genus, or remove NAs.

Value

Will return a data frame identical to the original, but with the genus column cleaned.

Author(s)

Andrew A. Zaffos

Examples

1
2
3
4
5
# Download a test dataset of Cenozoic bivalves.
# DataPBDB<-downloadPBDB(Taxa="Bivalvia",StartInterval="Cenozoic",StopInterval="Cenozoic")

# Clean up the genus column.
# CleanedPBDB<-cleanTaxonomy(DataPBDB,"genus")

velociraptr documentation built on Aug. 1, 2019, 1:05 a.m.