kommuner2022 | R Documentation |
Definitions of Norwegian municipalities (kommune), current in 2022. providing their borders, their official name and their official code.
data(kommuner2022)
sf
with area names identified in the column 'StratumName'. See StratumPolygon
(v.2).
Norwegian landings data often list landing sites by identifiers for municipalities (kommunenummer). This resource can be used to infer location code that are associated with polygons or coordinates, such as UN/LOCODES.
The Norwegian municipalities have been subject to revision, and other resources may have to be obtained to completely handle data from other years.
# map kommune to locodes
data(kommuner2022)
data(portcodes2020)
nocodes <- portcodes2020[portcodes2020$Country=="NO" & !is.na(portcodes2020$latitude),]
locodemap <- RstoxFDA::appendAreaCode(nocodes, kommuner2022,
colName="kommune",
latName = "latitude",
lonName = "longitude")[,c("kommune", "Location")]
# Note that kommune does not uniquely identify locode:
locodemap[locodemap$kommune==4601,]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.