solve_discrepancies: Resolve discrepancies between species and...

View source: R/solve_discrepancies.R

solve_discrepanciesR Documentation

Resolve discrepancies between species and subspecies/varieties information

Description

Resolve discrepancies between species and subspecies/varieties information

Usage

solve_discrepancies(data)

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.

Value

a data.frame with the discrepancies solved

Examples

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")

florabr documentation built on Sept. 11, 2024, 9:10 p.m.