Description Usage Arguments Details Value Author(s) Examples
View source: R/cleanTaxonomy.R
Removes NAs and subgenera from the genus column.
1 | cleanTaxonomy(Data, Taxonomy = "genus")
|
Data |
A data frame of taxonomic ocurrences downloaded from the paleobiology database API. |
Taxonomy |
A character string |
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.
Will return a data frame identical to the original, but with the genus column cleaned.
Andrew A. Zaffos
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.