Learn R Programming

flora (version 0.1)

get.taxon.info: Retrieve information of a list of botanical names.

Description

Retrieve taxonomical information on flowering plants that occur in Brazil from the Flora do Brasil website.

Usage

get.taxon.info(taxa, verbose = FALSE, pbar = TRUE)

Arguments

taxa
A character string containing one or more botanical names.
verbose
A logical value indicating whether R detailed information on the data requests to Flora do Brasil should be shown.
pbar
A logical value indicating if a progress bar should be shown.

Value

  • An invisible list with the following fields:
  • tax.rankA character string of the taxonomical rank of the botanical name or a flora object with unprocessed names. It can contain, families, genera, species, varieties (var.), subspecies (subsp.), and hybrids.
  • idA characther string of the identification of the botanical name on Flora do Brasil
  • acceptedA logical value indicating the status of the botanical name
  • accepted.nameA character string of the accepted name
  • familyA character string of the family
  • nameA character string of the searched botanical name
  • authorA character string of the author
  • lower.taxaA character string of all accepted taxa of a lower rank
  • synonymsA character string containing all the synonyms of a botanical name
  • foundA logical value indicating whether the name was found or not
  • suggestionA character string of a name suggestion
  • citationA character string indicating how to cite Flora do Brasil
  • processedA logical value indicating whether the botanical name was processed

Details

This function gets the status, family, author, and synonyms of a botanical name. It can also suggest a valid name if the one used as input is misspelled. You must have a working connection to the internet for it to work properly. If either your connection or Flora do Brasil crash whilst processing a list of botanical names, get.taxon.info will try to return an object with your unfinished list. You can use this object later as input in get.taxon.info to resume the search. This process can be repeated as many times as needed. Since get.taxon.info relies heavily on data scrapped from a website, changes upstream can lead to broken functions in flora. Always check if you have the latest version of the package.

References

http://floradobrasil.jbrj.gov.br/

Examples

Run this code
get.taxon.info(c("Myrcia lingua", "Myrcia bella", "Miconia", "Rubiaceae"))

Run the code above in your browser using DataLab