get_attributes {florabr}R Documentation

Get available attributes to filter species

Description

This function displays all the options available to filter species by its characteristics

Usage

get_attributes(data, attribute)

Arguments

data

(data.frame) a data.frame imported with the load_florabr function or a data.frame generated with the select_species function.

attribute

(character) the type of characteristic. Accept more than one option. See detail to see the options.

Details

The attribute argument accepts the following options: kingdom, group, subgroup, phylum, class, order, family, lifeform, habitat, vegetation, origin, endemism, biome, states, taxonomicstatus or nomenclaturalstatus. These options represent different characteristics of species that can be used for filtering.

Value

a list of data.frames with the available options to use in the select_species function.

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
# Get available biomes, life forms and states to filter species
d <- get_attributes(data = bf_data,
                    attribute = c("biome", "lifeform", "states"))

[Package florabr version 1.2.0 Index]