Get taxa
get_taxa.RdThe function downloads and returns a list or dataframe containing a taxonomic
description for each requested species where a row corresponds to an
individual species. The function returns a dataframe for all species if no
parameters are specified. The function filters returned taxa record by
attributes corresponding to atlas table columns specified as parameters
(ie. id, scientific_name, col, gbif, etc)
with accepted values either being scalar or vector for single or multiple
records
Arguments
- id
Optional.
integerscalar or vector. Returns a dataframe for the taxon with the specified id- scientific_name
Optional.
charscalar or vector. Returns a dataframe for the taxon with the specified scientific name- match_name
Optional.
charscalar or vector. Returns a dataframe for the taxon with the specified scientific name or vernacular name. Vernacular names in french or english are accepted.- ...
Optional. scalar or vector. Returns a dataframe filtered by the atlas
taxatable columns specified as parameter
Examples
# Returns all available taxa records in atlas
taxa <- get_taxa()
# Returns all taxa filtered by the column id values
taxa <- get_taxa(id = c(188, 201, 294, 392))
# Returns taxa record for the scientific name
taxa <- get_taxa(scientific_name = "Cyanocitta cristata")
# Return taxa filtered by the atlas table column `col`
results <- get_taxa(col = 35520954)