This vignette provides details on the source data retrieved from Eurostat.
fetch_indicator()
with source = 'eurostat'
uses the R package eurostat to retrieve data.
Data is retrieved with eurostat::get_eurostat()
with keepFlags = TRUE
to ensure that footnotes are included in the returned data.
Note that values are only returned for EU countries (excluding Cyprus), as well as UK, Norway and Island.
Currently only the following two indicators are available for Eurostat. Both indicators are from the demo_gind
dataset in the Eurostat list of databases.
library(dplyr)
data(indicatorlist)
indicatorlist %>%
filter(source == 'eurostat') %>%
select(indicator)
## indicator
## 1 SP.POP.TOTL
## 2 SP.DYN.CBRT.IN
# Retrieve population and birth rate data
df <- fetch_indicator(
indicator = c('SP.POP.TOTL', 'SP.DYN.CBRT.IN'),
source = 'eurostat')
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.1. URL: https://ropengov.github.io/eurostat/