# Load example data
data("occurrences", package = "RuHere") # Import example data
# Standardize country names
occ_country <- standardize_countries(occ = occurrences,
return_dictionary = FALSE)
# Check whether records fall within the assigned countries
occ_country_checked <- check_countries(occ = occ_country,
country_column = "country_suggested")
# Fix records with incorrect or misassigned countries
occ_country_fixed <- fix_countries(occ = occ_country_checked,
country_column = "country_suggested")
Run the code above in your browser using DataLab