To use this function, the user must choose a column, probably "coordinateUncertaintyInMeters" and a threshold above which occurrences will be flagged for geographic uncertainty.
coordUncerFlagR(
data = NULL,
uncerColumn = "coordinateUncertaintyInMeters",
threshold = NULL
)
The input data with a new column, .uncertaintyThreshold.
# Run the function
beesRaw_out <- coordUncerFlagR(data = beesRaw,
uncerColumn = "coordinateUncertaintyInMeters",
threshold = 1000)
#> \coordUncerFlagR:
#> Flagged 15 geographically uncertain records:
#> The column '.uncertaintyThreshold' was added to the database.
# View the output
table(beesRaw_out$.uncertaintyThreshold, useNA = "always")
#>
#> FALSE TRUE <NA>
#> 15 23 62