我在哪里可以在 R 的 shapefile 中找到 EU NUTS 代码?
NUTS = 统计地域单位命名法
每个 NUTS 地区都有一个 NUTS 代码:
.
您还可以在此 Excel 文件中找到详细的 NUTS 代码。
当我下载 NUTS shapefile 时,我找不到这个 NUTS 代码。
我从以下位置下载了 shapefile NUTS_2013_20M_SH.zip:
ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts#nuts13
下载后,我使用以下代码将 shapefile 上传到 R 中:
library(sp)
library(rgdal)
dir <- setwd(getwd())
NUTS_shape = readOGR(dsn = (dsn = "~/NUTS_2013_20M_SH/data", layer = "NUTS_BN_20M_2013")
笔记:
dsn =
是保存 shapefile 的文件夹的路径。layer =
是不带文件扩展名的文件名(例如,.shp)
如果我使用summary(NUTS_shape)
,我只找到一个“NUTS_BN_ID”但没有 NUTS 代码。此外,如果我使用str(NUTS_shape[4461,])
查看示例项目 4461 的列表结构,似乎没有 NUTS 代码。
有谁知道 NUTS shapefile 是否包含 NUTS 代码,或者 NUTS_BN_ID 是否以某种方式链接到此代码?