z22_features: Features

View source: R/features.R

z22_featuresR Documentation

Features

Description

Get a list of available features. To get a list of all categories, see z22_categories.

For further clarification of terms used in the feature labels, see the glossary.

Usage

z22_features(theme = NULL, year = NULL, res = NULL, legacy_names = FALSE)

Arguments

theme

Theme of the feature. Available themes are "population", "families", "households", "dwellings", and "buildings". If NULL, returns features for all themes.

year

Census year. Can be 2011 or 2022. If NULL, returns features for both years.

res

Resolution of the feature grid. Can be "100m", "1km", or "10km". For Census 2011, only 100m and 1km are available and not all features are available for both resolutions. For Census 2022, all features are available at all resolutions. If NULL, returns features for all resolutions.

legacy_names

If TRUE, uses legacy (german) feature names from the Census 2011 where possible. Defaults to FALSE.

Value

A tibble containing the following columns:

  • theme: Theme of the feature

  • feature: Feature name

  • desc: Human-readable english description

  • z22: Whether the feature is available in the Census 2022

  • z11_100m: Whether the feature is available in the Census 2011 at a 100m resolution

  • z11_1km: Whether the feature is available in the Census 2011 at a 1km resolution

  • has_cat: Whether the feature is is further divided into categories.

Examples

# return all features related to dwellings
z22_features("dwellings")

# return all features available in the Census 2011
z22_features(year = 2011)

# return all features available in 2011 at a 1km resolution
z22_features(year = 2011, res = "1km")

z22 documentation built on June 8, 2025, 10:26 a.m.