# Load example data
data("occurrences", package = "RuHere") # Import example data
# Subset records of Araucaria
occ <- occurrences[occurrences$species == "Araucaria angustifolia", ]
# Standardize country names
occ_country <- standardize_countries(occ = occ,
return_dictionary = FALSE)
# Standardize state names
occ_state <- standardize_states(occ = occ_country,
country_column = "country_suggested",
return_dictionary = FALSE)
# Check whether records fall within the assigned states
occ_states_checked <- check_states(occ = occ_state,
state_column = "state_suggested")
# Fix records with incorrect or misassigned states
occ_states_fixed <- fix_states(occ = occ_states_checked,
state_column = "state_suggested")
Run the code above in your browser using DataLab