importData {eurodata} | R Documentation |
Download and import a Eurostat dataset
Description
Download and import a Eurostat dataset
Usage
importData(EurostatDatasetCode, filters = NULL)
Arguments
EurostatDatasetCode |
A string (upper/lower-case difference is not relevant) with Eurostat dataset code name,
e.g. |
filters |
Optional: a list of atomic vectors. The names of the elements of the list should correspond to the
names of the dimensions of the dataset (defined in |
Value
A Eurostat dataset as a ‘flat’ data.frame. A ‘flat’ dataset has all numeric values in one column, with each row representing one of the available combinations of all dimensions (e.g. if dimensions are: countries, years, sectors, and indicators, there can be a row for value added in retail in Germany in 2013).
Examples
## Not run:
# Full dataset import:
importData('nama_10_gdp')
# Import only a subset of a dataset:
importData('bop_its6_det',
filters = list(geo=c('AT','BG'),
TIME_PERIOD=2014:2020,
bop_item='SC'))
## End(Not run)