View source: R/bdc_coordinates_empty.R
bdc_coordinates_empty | R Documentation |
This function flags records missing latitude or longitude coordinates.
bdc_coordinates_empty(data, lat = "decimalLatitude", lon = "decimalLongitude")
data |
data.frame. Containing geographical coordinates. |
lat |
character string. The column name with latitude in decimal degrees and WGS84. Default = "decimalLatitude". |
lon |
character string. The column with longitude in decimal degrees and WGS84. Default = "decimalLongitude". |
This test identifies records missing geographic coordinates (i.e., empty or not applicable NA longitude or latitude)
A data.frame containing the column ".coordinates_empty". Compliant (TRUE) if 'lat' and 'lon' are not empty; otherwise "FALSE".
Other prefilter:
bdc_basisOfRecords_notStandard()
,
bdc_coordinates_country_inconsistent()
,
bdc_coordinates_from_locality()
,
bdc_coordinates_outOfRange()
,
bdc_coordinates_transposed()
,
bdc_country_standardized()
,
bdc_scientificName_empty()
x <- data.frame(
decimalLatitude = c(19.9358, -13.016667, NA, ""),
decimalLongitude = c(-40.6003, -39.6, -20.5243, NA)
)
bdc_coordinates_empty(
data = x,
lat = "decimalLatitude",
lon = "decimalLongitude"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.