
Filter records to georeference using GEOLocate
ec_flag_with_locality.RdFilter records to georeference using GEOLocate
Usage
ec_flag_with_locality(
data,
uncertainty = "coordinateUncertaintyInMeters",
locality = "locality",
verbatimLocality = "verbatimLocality"
)Value
A column with flagged records as 1, which means these records has potential to be georeferenced.
Details
Records those does not have coordinates assigned but has locality and varbatim locality information to assign coordinates by using external tools such as GEOLocate
Examples
data <- data.frame(
coordinateUncertaintyInMeters = c(NA, "N/A", 50, "30", NA, "N/A", NA),
locality = c("Santa Cruz", NA, "Los Angeles", "N/A", "", "San Diego", NA),
verbatimLocality = c(NA, "CA coast", "", "N/A", "Long Beach", NA, "")
)
data$flag_check_geolocate <- ec_flag_with_locality(
data, uncertainty = "coordinateUncertaintyInMeters",
locality = "locality",
verbatimLocality = "verbatimLocality"
)