KOF Working Papers, KOF Swiss Economic Institute, ETH Zurich 384
timeseriesdb is an R package which suggests a PostgreSQL database structure to store time series alongside extensive multi-lingual meta information and provides an R database interface including a web based GUI. The timeseriesdb package was designed to handle time series in establishment statistics. Information such as the GDP or data stemming from the aggregation of economic surveys is typically published on a monthly, quarterly or yearly basis. Hence the package is optimized to handle a large amount of different time series as opposed to managing a smaller number of high frequency time series such as real time data obtained from measuring devices. The particular focus of timeseriesdb is to help the user find and extract a particular set of information within a larger set of information. The timeseriesdb package intends to provide the infrastructure for a time series catalog as opposed to handling time series operations on database level. The underlying structure relies on PostgreSQL's hstore data type which allows to store an array of key-value pairs in a single cell. The hstore data type is not only used to reduce the number of records by storing an entire time series in a single record but also to store a record specific amount of multi-lingual meta information items flexibly.
time series data management relational database establishment statistics official statistics hstore NoSQL economic data reproducible research R PostgreSQL