Learn R Programming

florabr (version 1.3.0)

solve_discrepancies: Resolve discrepancies between species and subspecies/varieties information

Description

Resolve discrepancies between species and subspecies/varieties information

Usage

solve_discrepancies(data)

Value

a data.frame with the discrepancies solved

Arguments

data

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

Details

In the original dataset, discrepancies may exist between species and subspecies/varieties information. An example of a discrepancy is when a species occurs only in one biome (e.g., Amazon), but a subspecies or variety of the same species occurs in another biome (e.g., Cerrado). This function rectifies such discrepancies by considering distribution (states, biomes, and vegetation), life form, and habitat. For instance, if a subspecies is recorded in a specific biome, it implies that the species also occurs in that biome.

Examples

Run this code
data("bf_data") #Load Flora e Funga do Brasil data
#Check if discrepancies were solved in the dataset
attr(bf_data, "solve_discrepancies")
#Solve discrepancies
bf_solved <- solve_discrepancies(bf_data)
#Check if discrepancies were solved in the dataset
attr(bf_solved, "solve_discrepancies")

Run the code above in your browser using DataLab