View source: R/nor_locations_hierarchy.R
nor_locations_hierarchy_from_to | R Documentation |
Calculates the relationship between different locations in Norway, according to geographic granularity. For example, which municipalities are inside which counties.
nor_locations_hierarchy_from_to(
from,
to,
include_to_name = FALSE,
border = csdata::config$border_nor
)
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). |
Data.table containing the columns:
from_code
to_code
to_name (if include_to_name==TRUE)
csdata::nor_locations_hierarchy_from_to(from="wardoslo", to="county")
csdata::nor_locations_hierarchy_from_to(from="municip", to="baregion")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.