Learn R Programming

eurostat (version 1.0.16)

eurotime2date: Date conversion from Eurostat time format

Description

A function to convert Eurostat time values to objects of class Date representing calendar dates.

Usage

eurotime2date(x, last = FALSE)

Arguments

x

a charter string with time information in Eurostat time format.

last

a logical. If FALsE (default) the date is the first date of the period (month, quarter or year). If TRUE the date is the last date of the period.

Value

an object of class Date.

Examples

Run this code
# NOT RUN {
   lp <- get_eurostat("namq_aux_lp", time_format = "raw")
   lp$time <- eurotime2date(x = lp$time)

   un <- get_eurostat("une_rt_m", time_format = "raw")
   un$time <- eurotime2date(x = un$time)

   lpa <- get_eurostat("nama_aux_lp", time_format = "raw")
   lpa$time <- eurotime2date(x = lpa$time)
   
# }

Run the code above in your browser using DataLab