Returns a data.frame with a subset of species from Flora e Funga do Brasil database

subset_species(data, species,
                      include_subspecies = FALSE,
                      include_variety = FALSE,
                      kingdom = "Plantae")

Arguments

data

(data.frame) the data.frame imported with the load_florabr function.

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
#>                      species                          scientificName
#> 26797 Araucaria angustifolia Araucaria angustifolia (Bertol.) Kuntze
#> 82146     Adesmia paranensis              Adesmia paranensis Burkart
#>       acceptedName kingdom       group subgroup       phylum         class
#> 26797         <NA> Plantae Gymnosperms     <NA> Tracheophyta     Pinopsida
#> 82146         <NA> Plantae Angiosperms     <NA> Tracheophyta Magnoliopsida
#>         order        family     genus lifeForm     habitat
#> 26797 Pinales Araucariaceae Araucaria     Tree Terrestrial
#> 82146 Fabales      Fabaceae   Adesmia Subshrub Terrestrial
#>                       biome            states
#> 26797 Atlantic_Forest;Pampa MG;PR;RJ;RS;SC;SP
#> 82146       Atlantic_Forest             PR;SC
#>                                                                               vegetation
#> 26797 High_Altitude_Grassland;Mixed_Ombrophyllous_Forest;Seasonally_Semideciduous_Forest
#> 82146                                                            High_Altitude_Grassland
#>       origin    endemism taxonomicStatus nomenclaturalStatus
#> 26797 Native Non-endemic        Accepted             Correct
#> 82146 Native     Endemic        Accepted             Correct
#>                                                                  vernacularName
#> 26797 araucaria, pinheiro-do-parana, curi, pinheiro-brasileiro, pinho-do-parana
#> 82146                                                                      <NA>
#>       taxonRank     id
#> 26797   Species  33971
#> 82146   Species 101033