Learn R Programming

eurostat (version 1.0.16)

label_eurostat: Get definitions for Eurostat codes from Eurostat dictionaries

Description

A string or a factor vector of codes returns a corresponding vector of definitions. For vectors a dictionary name have to be supplied. For data.frames dictonary names are taken from column names. "time" and "values" columns are returned as they were, so you can supply data.frame from get_eurostat and get data.frame with definitions instead of codes.

Usage

label_eurostat(x, dic = NULL)

label_eurostat_vars(x)

label_eurostat_tables(x)

Arguments

x

a vector or a data.frame.

dic

a string (vector) naming eurostat dictionary or dictionaries. If NULL (default) dictionry names taken from column names of the data.frame.

Value

a vector or a data.frame.

Functions

  • label_eurostat_vars: Get definitions for variable (column) names

  • label_eurostat_tables: Get definitions for table names

Examples

Run this code
# NOT RUN {
   lp <- get_eurostat("nama_aux_lp")
   lpl <- label_eurostat_vars(lp)
   str(lpl)
   label_eurostat_vars(names(lp))
   label_eurostat_tables("nama_aux_lp")
 
# }

Run the code above in your browser using DataLab