View source: R/gisco-get-urban-audit.R
| gisco_get_urban_audit | R Documentation |
The dataset contains the boundaries of cities ("CITIES"), greater cities
("GREATER_CITIES") and functional urban areas ("FUA") as defined
according to the EC-OECD city definition. This is used for the Eurostat Urban
Audit data collection.
Please note that this function gets data from the aggregated GISCO
Urban Audit file. If you prefer to download individual urban audit files,
please use gisco_get_unit_urban_audit().
gisco_get_urban_audit(
year = 2021,
epsg = 4326,
cache = TRUE,
update_cache = FALSE,
cache_dir = NULL,
verbose = FALSE,
spatialtype = c("RG", "LB"),
country = NULL,
level = c("all", "CITIES", "FUA", "GREATER_CITIES", "CITY", "KERN", "LUZ"),
ext = "gpkg"
)
year |
character string or number. Release year of the file. One of \Sexpr[stage=render,results=rd]{giscoR:::db_values("urban_audit", "year",TRUE)}. |
epsg |
character string or number. Projection of the map: 4-digit EPSG code. One of:
|
cache |
logical. Whether to do caching. Default is |
update_cache |
logical. Should the cached file be refreshed?. Default
is |
cache_dir |
character string. A path to a cache directory. See
Caching strategies section in |
verbose |
logical. If |
spatialtype |
character string. Type of geometry to be returned. Options available are:
|
country |
character vector of country codes. It could be either a
vector of country names, a vector of ISO3 country codes or a vector of
Eurostat country codes. See also |
level |
character string. Level of Urban Audit. Possible values |
ext |
character. Extension of the file (default |
See more in Eurostat - Statistics Explained.
The cities are defined at several conceptual levels:
The core city ("CITIES"), using an administrative definition.
The Functional Urban Area/Large Urban Zone ("FUA"), approximating the
functional urban region.
The coverage is the EU plus Iceland, Norway and Switzerland . The dataset
includes polygon features, point features and a related attribute table
which can be joined on the URAU code field.
The "URAU_CATG" field defines the Urban Audit category:
"C" = City.
"F" = Functional Urban Area Service Type.
A sf object.
Please check the download and usage provisions on gisco_attributions().
https://gisco-services.ec.europa.eu/distribution/v2/.
Copyright: https://ec.europa.eu/eurostat/web/gisco/geodata/administrative-units.
See gisco_bulk_download() to perform a bulk download of datasets.
See gisco_get_unit_urban_audit() to download single files.
Other statistical units datasets:
gisco_get_census(),
gisco_get_coastal_lines(),
gisco_get_lau(),
gisco_get_nuts()
cities <- gisco_get_urban_audit(year = 2021, level = "CITIES")
if (!is.null(cities)) {
bcn <- cities[cities$URAU_NAME == "Barcelona", ]
library(ggplot2)
ggplot(bcn) +
geom_sf()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.