Learn R Programming

⚠️There's a newer version (3.7.10) of this package.Take me there.

eurostat R package

R tools to access open data from Eurostat. Data search, download, manipulation and visualization.

Installation and use

# Install from CRAN
install.packages("eurostat")

# Install from GitHub
library(devtools)
devtools::install_github("ropengov/eurostat")

The package provides several different ways to get datasets from Eurostat. Searching for data is one way, if you know what to look for.

# Load the package
library(eurostat)

# Perform a simple search and print a table
passengers <- search_eurostat("passenger transport")
knitr::kable(head(passengers))

See the Tutorial and other resources at the package homepage for more information and examples.

Recommended packages

It is recommended to install the giscoR package (https://dieghernan.github.io/giscoR/). This is another API package that provides R tools for Eurostat geographic data to support geospatial analysis and visualization.

Contribute

Contributions are very welcome:

Acknowledgements

Kindly cite this work as follows: Leo Lahti, Przemyslaw Biecek, Markus Kainu and Janne Huovari. Retrieval and analysis of Eurostat open data with the eurostat package. R Journal 9(1):385-392, 2017. R package version 3.7.5. URL: https://ropengov.github.io/eurostat/

We are grateful to all contributors, including Daniel Antal, Joona Lehtomäki, Francois Briatte, and Oliver Reiter, and for the Eurostat open data portal! This project is part of rOpenGov.

Disclaimer

This package is in no way officially related to or endorsed by Eurostat.

Copy Link

Version

Install

install.packages('eurostat')

Monthly Downloads

4,964

Version

3.7.5

License

BSD_2_clause + file LICENSE

Maintainer

Leo Lahti

Last Published

May 14th, 2021

Functions in eurostat (3.7.5)

eurostat_geodata_60_2016

Geospatial data of Europe from Gisco in 1:60 million scale from year 2016
get_eurostat_raw

Download Data from Eurostat Database
eurotime2date

Date Conversion from Eurostat Time Format
regional_changes_2016

Changes in regional boundaries NUTS2013-NUTS2016
search_eurostat

Grep Datasets Titles from Eurostat
clean_eurostat_cache

Clean Eurostat Cache
get_eurostat_geospatial

Download Geospatial Data from GISCO
get_eurostat_toc

Download Table of Contents of Eurostat Data Sets
recode_to_nuts_2013

Recode geo labels and rename regions from NUTS2016 to NUTS2013
convert_time_col

Time Column Conversions
recode_to_nuts_2016

Recode geo labels and rename regions from NUTS2013 to NUTS2016
get_eurostat_json

Get Data from Eurostat API in JSON
eurostat-package

R Tools for Eurostat open data
eurotime2num

Conversion of Eurostat Time Format to Numeric
eu_countries

Countries and Country Codes
harmonize_country_code

Harmonize Country Code
tidy_eurostat

Transform Data into Row-Column-Value Format
dic_order

Order of Variable Levels from Eurostat Dictionary.
harmonize_geo_code

Harmonize NUTS region codes that changed with the NUTS2016 definition
set_eurostat_toc

Set Eurostat TOC
get_bibentry

Create A Data Bibliography
tgs00026

Auxiliary Data
add_nuts_level

Add the statistical aggregation level to data frame
cut_to_classes

Cuts the Values Column into Classes and Polishes the Labels
check_access_to_data

Check access to ec.europe.eu
get_eurostat_dic

Download Eurostat Dictionary
get_eurostat

Read Eurostat Data
label_eurostat

Get Eurostat Codes
nuts_correspondence

Correspondence Table NUTS2013-NUTS2016