View source: R/solve_discrepancies.R
solve_discrepancies | R Documentation |
Resolve discrepancies between species and subspecies/varieties information
solve_discrepancies(data)
data |
(data.frame) the data.frame imported with the
|
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.
a data.frame with the discrepancies solved
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.