{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\n", "COPYRIGHT NOTICE\n", "\n", "When data downloaded from this page \n", "\n", "is used in any printed or electronic publication, \n", "in addition to any other provisions \n", "applicable to the whole Eurostat website, \n", "data source will have to be acknowledged \n", "in the legend of the map and \n", "in the introductory page of the publication \n", "with the following copyright notice:\n", "\n", "- EN: (C) EuroGeographics for the administrative boundaries\n", "- FR: (C) EuroGeographics pour les limites administratives\n", "- DE: (C) EuroGeographics bezuglich der Verwaltungsgrenzen\n", "\n", "For publications in languages other than \n", "English, French or German, \n", "the translation of the copyright notice \n", "in the language of the publication shall be used.\n", "\n", "If you intend to use the data commercially, \n", "please contact EuroGeographics for \n", "information regarding their licence agreements.\n", " \n", "No encoding supplied: defaulting to UTF-8.\n", "\n", "# --------------------------\n", "HEADS UP!!\n", "\n", "Function now returns the data in 'sf'-class (simple features) \n", "by default which is different \n", "from previous behaviour's 'SpatialPolygonDataFrame'. \n", "\n", "If you prefer either 'SpatialPolygonDataFrame' or \n", "fortified 'data_frame' (for ggplot2::geom_polygon), \n", "please specify it explicitly to 'output_class'-argument!\n", "\n", "# -------------------------- \n", " \n" ] } ], "source": [ "library(eurostat)\n", "\n", "shp <- get_eurostat_geospatial(\n", " output_class=\"spdf\",\n", " resolution=\"60\",\n", " nuts_level=3,\n", " year=2010,\n", ")" ] } ], "metadata": { "kernelspec": { "display_name": "R", "language": "R", "name": "ir" }, "language_info": { "codemirror_mode": "r", "file_extension": ".r", "mimetype": "text/x-r-source", "name": "R", "pygments_lexer": "r", "version": "3.6.1" } }, "nbformat": 4, "nbformat_minor": 2 }