Longitude and latitude vectors validated to be parseable as numeric and within the bounds -180:180 and -90:90. If validation fails, an error is generated.
validateLonsLats(longitude = NULL, latitude = NULL, na.rm = FALSE)Vector of longitudes in decimal degrees E.
Vector of latitudes in decimal degrees N.
Logical specifying whether to remove NA values before
validation.
Invisibly returns TRUE if no error message has been generated.