# Load example data
data("occurrences", package = "RuHere") #Import data example
# Subset occurrences for Araucaria angustifolia
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 assigned states
occ_state_checked <- check_states(occ = occ_state,
state_column = "state_suggested")
Run the code above in your browser using DataLab