list_higher_taxo: Get higher taxonomy data for list of names
Description
Retrieve higher taxonomy information (like Family and Order) for each record
from the "Encyclopedia of Life" web API.
Usage
list_higher_taxo(indf, canonical, genus = FALSE, verbose = FALSE,
progress = TRUE)
Arguments
indf
input data frame containing taxonomic list
canonical
field name containing scientific names
genus
If TRUE, use only genus level data to get taxanomy
verbose
If TRUE, displays each name string for which the higher
taxonomy is sought
progress
If TRUE prints progress bar and messages on the console.
Value
data frame with added / updated columns
"Kingdom"Kingdom
of the Scientific name
"Phylum"Phylum of the Scientific name
"Order_"Order of the Scientific name
"Family"Family of the
Scientific name
"Genus"Genus of the Scientific name
and also
saves a local copy of taxonomy downloaded for future use in 'taxo.db' sqlite
file
Details
This function makes use of certain functions in the taxize
package. It scans and retrieves the taxonomic hierarchy for each scientific
name (or just genus name) in the data set. When new data are retrieved, they
are stored in a local sqlite database, taxo.db, for faster further access.
Examples
Run this code# NOT RUN {
inat <- list_higher_taxo(inat)
# }
Run the code above in your browser using DataLab