欧统局地理空间数据NUTS-3下载用于制图

时间:2018-07-04 08:46:34

标签: r maps gis bubble-chart choropleth

我正在尝试从欧盟统计局下载NUTS-3区域的地理空间数据,但是在执行代码时,我收到了“ NUTS-3的未使用参数的错误。有什么办法可以解决?”在此先感谢您在您的时间里,我将代码和软件包一起发布

library(eurostat)
library(tidyverse)
library(lubridate)
library(rnaturalearth)
library(sf)
library(dplyr)

# download eurostat data of population counts by NUTS-3 region

euro_pop <- get_eurostat('demo_r_pjanaggr3', stringsAsFactors = FALSE) %>%
   filter(sex == 'T', str_length(geo) == 5, age == 'TOTAL') # NUTS-3

# download geospatial data for NUTS-3 regions

euro_nuts3_sf <- get_eurostat_geospatial(output_class = 'sf', 
   resolution ='60', nuts_level = 3) %>%
   st_transform(crs = 3035)

Error in get_eurostat_geospatial(output_class = "sf", resolution = "60",  : 
unused argument (nuts_level = 3)

0 个答案:

没有答案