Learn R Programming

helsinki (version 1.0.6)

get_vaestotietoruudukko: Produce an SF object: Vaestotietoruudukko

Description

Produces an sf object for Väestötietoruudukko (population grid).

Usage

get_vaestotietoruudukko(year = NULL)

Value

sf object

Arguments

year

a single year as numeric between 1997-2003 and 2008:2021. If NULL (default), the function will return the latest available dataset.

Author

Pyry Kantanen pyry.kantanen@gmail.com

Details

Additional data not available here can be manually downloaded from HRI website: https://hri.fi/data/fi/dataset/vaestotietoruudukko

Years 1997-2003 and 2008-2021 are tested to work at the time of development. Datasets from years 2015-2021 are downloaded from HSY WFS API and datasets for other years are downloaded as zip files from HRI website. The format of the output might be a bit different between datasets downloaded from the WFS API and datasets downloaded from HRI website.

Additional years may be added in the future and older datasets may be removed from the API. See package NEWS for more information.

The current datasets can be listed with get_feature_list() or select_feature().

Examples

Run this code
if (FALSE) {
pop_grid <- get_vaestotietoruudukko(year = 2021)
}

Run the code above in your browser using DataLab