describe {eurodata}R Documentation

Describe a given Eurostat dataset on the basis of information from Metabase

Description

Describe a given Eurostat dataset on the basis of information from Metabase

Usage

describe(
  EurostatDatasetCode,
  import_labels = !wide,
  wide = FALSE,
  import_dim_labels = TRUE
)

Arguments

EurostatDatasetCode

A string with Eurostat dataset code name, e.g. "nama_10_gdp" or "bop_its6_det". See e.g.: https://ec.europa.eu/eurostat/databrowser/explore/all/all_themes where, once you follow one of the "branches" of the "tree" of datasets, the dataset codes are in tiny grey font in square brackets just under the full names of the datasets (the names are in navy blue and preceded by a cube icon).

import_labels

Boolean: should labels for the codes inside dimensions be imported. Default: if wide is FALSE then import_labels is TRUE and vice versa.

wide

Boolean: should each dimension be compressed to one row and all values within each dimension to a single, comma-separated string. Default: FALSE.

import_dim_labels

Boolean: should the dimensions (e.g. geo, indic_is, or nace_r2) be labelled with a descriptive name (via importDimLabel). Default: TRUE.

Value

A data.table with columns Dim_name, Dim_name_label (if import_dim_labels=TRUE), either Dim_val (if wide=FALSE) or Dim_values (if wide=TRUE), Dim_val_label (if import_labels=TRUE), and a column with a name = EurostatDatasetCode with all its values = TRUE.

Examples

## Not run: 
describe('nama_10_gdp')

## End(Not run)

[Package eurodata version 1.7.0 Index]