subset_species {florabr} | R Documentation |
Extract a subset of species from Flora e Funga do Brasil database
Description
Returns a data.frame with a subset of species from Flora e Funga do Brasil database
Usage
subset_species(data, species,
include_subspecies = FALSE,
include_variety = FALSE,
kingdom = "Plantae")
Arguments
data |
(data.frame) the data.frame imported with the
|
species |
(character) names of the species to be extracted from Flora e Funga do Brasil database. |
include_subspecies |
(logical) include subspecies? Default = FALSE |
include_variety |
(logical) include varieties of the species? Default = FALSE |
kingdom |
(character) The kingdom for filtering the dataset. It can be "Plantae" or "Fungi". Default = "Plantae". To include both, use c("Plantae", "Fungi") |
Value
A data.frame with the selected species.
References
Flora e Funga do Brasil. Jardim Botânico do Rio de Janeiro. Available at: http://floradobrasil.jbrj.gov.br/
Examples
data("bf_data") #Load Flora e Funga do Brasil data
#Species to extract from database
spp <- c("Araucaria angustifolia", "Adesmia paranensis")
spp_bf <- subset_species(data = bf_data, species = spp,
include_subspecies = FALSE,
include_variety = FALSE)
spp_bf
[Package florabr version 1.2.0 Index]