Learn R Programming

eurostat (version 1.0.16)

tidy_eurostat: Transform raw Eurostat data table into the row-column-value format (RCV).

Description

Transform raw Eurostat data table into the row-column-value format (RCV).

Usage

tidy_eurostat(dat, time_format = "date")

Arguments

dat

a data.frame from get_eurostat_raw.

time_format

a string giving a type of the conversion of the time column from the eurostat format. A "date" (default) convers to a Date with a first date of the period. A "date_last" convers to a Date with a last date of the period. A "num" convers to a numeric and "raw" does not do conversion. See eurotime2date and eurotime2num.

Value

data.frame in the molten format with the last column 'values'.

References

See citation("eurostat").

See Also

get_eurostat