bdc_coordinates_precision: Flag low-precise geographic coordinates
Description
This function flags records with a coordinate precision below a
specified number of decimal places. Coordinates with one, two, or three
decimal places present a precision of~11.1 km, ~1.1 km, and ~111 m at the
equator, respectively.
A data.frame with logical values indicating whether values are equal
or higher than the specified minimum decimal number (ndec). Coordinates
flagged as FALSE in .rou column are considered imprecise.
Arguments
data
data.frame. A data.frame containing geographic coordinates.
lat
character string. The column with latitude in decimal degrees and
WGS84. Default = "decimalLatitude".
lon
character string. The column with longitude in decimal degrees and
WGS84. Default = "decimalLongitude".
ndec
numeric. The minimum number of decimal places that the
coordinates should
have to be considered valid. Default = 2.