nor_locations_hierarchy_from_to {csdata}R Documentation

Location hierarchies in Norway

Description

Calculates the relationship between different locations in Norway, according to geographic granularity. For example, which municipalities are inside which counties.

Usage

nor_locations_hierarchy_from_to(
  from,
  to,
  include_to_name = FALSE,
  border = csdata::config$border_nor
)

Arguments

from

wardoslo, wardbergen, wardtrondheim, wardstavanger, municip, baregion, county, georegion, mtregion, notmainlandmunicip, notmainlandcounty, missingmunicip, missingcounty

to

wardoslo, wardbergen, wardtrondheim, wardstavanger, municip, baregion, county, georegion, mtregion, notmainlandmunicip, notmainlandcounty, missingmunicip, missingcounty

include_to_name

Do you want to include the name of the 'to' location?

border

The year in which Norwegian geographical boundaries were designated (2020, 2024).

Value

Data.table containing the columns:

Examples

csdata::nor_locations_hierarchy_from_to(from="wardoslo", to="county")
csdata::nor_locations_hierarchy_from_to(from="municip", to="baregion")

[Package csdata version 2024.4.26 Index]