Closed sebsfox closed 5 years ago
Hi @sebsfox! The function ukair_get_coordinates(), as the name suggests, only tries to get the coordinates for the stations ids. If you feed ukair_get_coordinates() with a character vector containing only identification numbers, you get a data.frame with identification numbers and coordinates. If you feed ukair_get_coordinates() with a dataframe containing a column with identification numbers, you get the same data.frame in which missing coordinates have been infilled (if available).
Of course you might still get NAs, this happens for stations that do not have coordinates available of the relevant ukair webpage.
Hope this clarifies everything.
I'm closing this issue, as this is the intended behaviour.
Hi there,
Depending on how I feed the Site ID into the function
ukair_get_coordinates()
I get a data.frame of different width. Two methods are as follows:Set up
Method 1
Method 2
Method 1 returns a data.frame with 5 variables, and Method 2 returns a data.frame with 16 variables (and Eastings and Northings are generally incomplete).
Thank you