gettaxo {bdvis}R Documentation

Get higher taxonomy data

Description

This function is slated to deprecate in next version. Please use function taxotools::list_higher_taxo instead.

Usage

gettaxo(indf, genus = FALSE, verbose = FALSE, progress = TRUE)

Arguments

indf

input data frame containing biodiversity data set

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 consol.

Details

Retrieve higher taxonomy information (like Family and Order) for each record from the "Encyclopedia of Life" web API.

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.

Value

indf with added / updated columns

and also saves a local copy of taxonomy downloaded for future use in taxo.db sqlite file

See Also

Other Data preparation functions: bdsummary(), format_bdvis(), getcellid()

Examples

## Not run: 
inat <- gettaxo(inat)

## End(Not run)

[Package bdvis version 0.2.37 Index]