Define a city using country, latitude and longitude coordinates.
The returned object can be used a input for name
argument the
cityview()
function.
new_city(name = NULL, country = NULL, lat = NULL, long = NULL)
A single string to be used as the city name.
A single string to be used as the country.
A single numeric value to be used as the latitude.
A single numeric value to be used as the longitude.
a data frame containing the new city alongside its respective country and coordinates.
city <- new_city(
name = "Lagos", country = "Portugal",
lat = 37.10, long = -8.68
)
#> Discovered the city of Lagos, Portugal at 37.1° / -8.68°!
if (FALSE) {
cityview(name = city)
}