View source: R/bdc_coordinates_outOfRange.R
bdc_coordinates_outOfRange | R Documentation |
This function identifies records with out-of-range coordinates (not between -90 and 90 for latitude; between -180 and 180 for longitude).
bdc_coordinates_outOfRange(
data,
lat = "decimalLatitude",
lon = "decimalLongitude"
)
data |
data.frame. Containing geographical coordinates. Coordinates must be expressed in decimal degrees and WGS84. |
lat |
character string. The column name with latitude in decimal degree and in WGS84. Default = "decimalLatitude". |
lon |
character string. The column with longitude in decimal degree and in WGS84. Default = "decimalLongitude". |
A data.frame containing the column ".coordinates_outOfRange". Compliant (TRUE) if 'lat' and 'lon' are not out-of-range; otherwise "FALSE".
Other prefilter:
bdc_basisOfRecords_notStandard()
,
bdc_coordinates_country_inconsistent()
,
bdc_coordinates_empty()
,
bdc_coordinates_from_locality()
,
bdc_coordinates_transposed()
,
bdc_country_standardized()
,
bdc_scientificName_empty()
x <- data.frame(
decimalLatitude = c(-185.111, -43.34, "", -21.8069444),
decimalLongitude = c(-45.4, -39.6, -20.5243, -440.9055555)
)
bdc_coordinates_outOfRange(
data = x,
lat = "decimalLatitude",
lon = "decimalLongitude"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.