where do I find the EU NUTS code in the shapefile in R?
NUTS = Nomenclature of Territorial Units for Statistics
Each NUTS region has a NUTS code:
.
You can also find the detailed NUTS codes in this Excel file.
When I download the NUTS shapefile, I cannot find this NUTS code.
I downloaded the shapefile NUTS_2013_20M_SH.zip from:
ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts#nuts13
After downloading, I upload the shapefile into R using the code:
library(sp)
library(rgdal)
dir <- setwd(getwd())
NUTS_shape = readOGR(dsn = (dsn = "~/NUTS_2013_20M_SH/data", layer = "NUTS_BN_20M_2013")
NOTE:
dsn =
is the path to the folder in which you saved the shapefile.layer =
is the name of the file without the file extension (e.g., .shp)
If I use summary(NUTS_shape)
, I only find a "NUTS_BN_ID" but no NUTS code. Also if I use str(NUTS_shape[4461,])
to see the list structure of example-item 4461, it doesn't seem like there is a NUTS code.
Does anyone know if the NUTS shapefile contains the NUTS code or if the NUTS_BN_ID is somehow linked to this code?