taxotools (version 0.0.35)

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 taxonomy

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.

See Also

Other Name functions: cast_canonical, check_scientific, expand_name, guess_taxo_level, melt_canonical

Examples

Run this code
# NOT RUN {
inat <- list_higher_taxo(inat)
# }

Run the code above in your browser using DataLab