Learn R Programming

eurostat (version 1.0.16)

eurotime2num: A conversion of a Eurostat time format to numeric

Description

A function to convert Eurostat time values to a numeric. Bi-annual, quarterly and monthly data is presented as fraction of the year in beginning of the period.

Usage

eurotime2num(x)

Arguments

x

a charter string with time information in Eurostat time format.

Value

see as.numeric.

Examples

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

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

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

Run the code above in your browser using DataLab