This dataset provides 2011 census units as region or point geometries.
Usage
gisco_get_census(
year = 2011,
cache_dir = NULL,
update_cache = FALSE,
verbose = FALSE,
spatialtype = c("RG", "PT")
)Arguments
- year
The release year as a character string or numeric value. The available year is 2011.
- cache_dir
A character string with a path to a cache directory. See the Caching strategies section in
gisco_set_cache_dir().- update_cache
A logical value indicating whether to refresh the cached file. Defaults to
FALSE. When set toTRUE, it forces a new download.- verbose
A logical value indicating whether to display informational messages.
- spatialtype
The type of geometry to return. Use
"PT"for points or"RG"for regions (polygons or multipolygons).
Value
An sf object or NULL if the download fails.
Copyright
See the GISCO statistical unit copyright provisions: https://ec.europa.eu/eurostat/web/gisco/geodata/statistical-units.
Note
Check the download and usage provisions in gisco_attributions().
See also
See gisco_id_api_census_grid() to download via the GISCO ID service API.
Statistical unit datasets:
gisco_get_coastal_lines(),
gisco_get_lau(),
gisco_get_nuts(),
gisco_get_urban_audit()
Examples
# \donttest{
library(sf)
pts <- gisco_get_census(spatialtype = "PT")
pts
#> Simple feature collection with 115136 features and 2 fields
#> Geometry type: POINT
#> Dimension: XY
#> Bounding box: xmin: -61.7796 ymin: -21.3399 xmax: 55.75452 ymax: 71.04844
#> Geodetic CRS: WGS 84
#> # A tibble: 115,136 × 3
#> CENS_ID ORIG_FID geometry
#> * <chr> <int> <POINT [°]>
#> 1 AT111_10801 1 (16.6325 47.59374)
#> 2 AT111_10802 2 (16.38657 47.49552)
#> 3 AT111_10803 3 (16.572 47.46158)
#> 4 AT111_10804 4 (16.5717 47.52752)
#> 5 AT111_10805 5 (16.56402 47.57514)
#> 6 AT111_10806 6 (16.38416 47.53657)
#> 7 AT111_10807 7 (16.37699 47.59442)
#> 8 AT111_10808 8 (16.44874 47.60538)
#> 9 AT111_10809 9 (16.40948 47.39185)
#> 10 AT111_10810 10 (16.63391 47.4686)
#> # ℹ 115,126 more rows
# }
