eurotime2num: Conversion of Eurostat Time Format to Numeric

View source: R/eurotime2num.R

eurotime2numR Documentation

Conversion of Eurostat Time Format to Numeric

Description

A conversion of a Eurostat time format to numeric.

Usage

eurotime2num(x)

Arguments

x

a charter string with time information in Eurostat time format.

Details

Bi-annual (semester), quarterly, monthly and weekly data can be presented as a fraction of the year in beginning of the period. Conversion of daily data is not supported.

Value

see as.numeric().

Author(s)

Janne Huovari janne.huovari@ptt.fi, Pyry Kantanen

See Also

Other helpers: cut_to_classes(), dic_order(), eurotime2date(), harmonize_country_code(), label_eurostat()

Examples



na_q <- get_eurostat("namq_10_pc", time_format = "raw")
na_q$TIME_PERIOD <- eurotime2num(x = na_q$TIME_PERIOD)

unique(na_q$TIME_PERIOD)



eurostat documentation built on May 29, 2024, 2:27 a.m.