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

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

# 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)

   eur_d <- get_eurostat("ert_bil_eur_d", time_format = "raw")
   eur_d$time <- eurotime2date(x = eur_d$time)

# }