View source: R/rcatfish_species_by.R
| rcatfish_species_by | R Documentation |
This function retrieves and parses data on the number of genera and species per family from the Eschmeyer's Catalog of Fishes. It returns a table containing the number of genera and species that are available, valid, and described in the last 10 years in its columns. Each row represents either a class, order, family, or subfamily, so some columns for higher taxonomic groups may have NA for lower taxonomic groups (e.g. if you Search for Cypriniformes, the row containing Cypriniformes will have NA for family and subfamily as it is above those taxonomic levels).
Given the function reads in the page containing the table, for speed, it is highly recommended that if a user wishes to obtain information on numerous orders, families, or subfamilies that they pass them in as a single query. To do this, see the last example.
rcatfish_species_by(query, verbose = TRUE)
query |
A character vector of taxa to search for. For users wishing to obtain the information for all fishes please query "Totals". |
verbose |
Logical. Should query progress be messaged to the screen? Default is TRUE. |
A list with each element containing a data frame for each query. List elements are named by the queried taxa. The list contains information on the number of genera and species available, valid, and described in the last 10 years. An itemized list describing the contents in the columns of the data frame(s) returned is described below. #'
Class - Character. Taxonomic class.
Order - Character. Taxonomic order.
Family - Character. Taxonomic family
Subfamily - Character. Taxonomic subfamily.
Available.Genera - Integer. Number of available genera for the taxonomic rank.
Valid.Genera - Integer. Number of valid genera for the taxonomic rank.
Genera.Last.Ten.Years - Integer. Number of genera described over the past ten years for the taxonomic rank.
Available.Species - Integer. Number of available species for the taxonomic rank.
Valid.Species - Integer. Number of valid species for the taxonomic rank.
Species.Last.Ten.Years - Integer. Number of species described over the past ten years for the taxonomic rank.
Samuel R. Borstein
Fricke, R., Eschmeyer, W.N. & Fong J.D. (Year Accessed). Eschmeyer’s Catalog of Fishes: Species by family/subfamily in the Catalog of Fishes. https://researcharchive.calacademy.org/research/ichthyology/catalog/SpeciesByFamily.asp.
#Search for the number of described Cypriniformes
MySearch <- rcatfish_species_by(query = "Cypriniformes")
#Obtain the total number of genera and species available, valid, and described in the last 10 years
CofF_totals <- rcatfish_species_by(query = "Totals")
#Search for more than one family
MySearch <- rcatfish_species_by(query = c("Cichlidae","Embiotocidae"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.