convert_time_to_year: Convert string time to numeric year

Description Usage Arguments Details Value

Description

www.scb.se database stores time data in a few different formats, many of which has no standard conversion to numeric or time objects. This function uses the known formats to convert time data to a numeric year, to enable easy comparisons. Months and quarters are ignored, as they are not present in all tables.

Usage

1

Arguments

time_value

The time value returned from API query

Details

The formats currently supported are listed below:

Value

Integer value of year, or NA if unable to convert


olhmr/rscb documentation built on May 15, 2019, 10:40 p.m.