Get Easting and Northing coordinates from DEFRA
Source:R/ukair_get_coordinates.R
ukair_get_coordinates.Rd
This function takes as input the UK AIR ID and returns Easting and Northing coordinates (British National Grid, EPSG:27700).
Value
A data.frame containing at least five columns named "UK.AIR.ID", "Easting", "Northing", "Latitude" and "Longitude".
Details
If the input is a data frame with some of the columns named "UK.AIR.ID", "Northing" and "Easting", the function only infills missing Northing/Easting values (if available on the relevant webpage).
Examples
if (FALSE) { # \dontrun{
# Case a: alphanumeric string
ukair_get_coordinates("UKA12536")
# Case b: vector of strings
ukair_get_coordinates(c("UKA15910", "UKA15956", "UKA16663", "UKA16097"))
# Case c: data frame
ukair_get_coordinates(ukair_catalogue()[1:10,])
} # }