Time Series Table Schema (TSTS)
In time series table schema each observation is stored in a table as a separate record (line):
Field name (column name) | Description | Examples |
---|---|---|
series_id* | Time series identifier - a unique name that identifies a time series | “Y1” |
timestamp* | Any representation of the period to which the observation relates. We recommend the use of the ISO 8601 standard | “1997” in case of yearly data, “1997-01-20” in case of daily data, “1997-11” in case of monthly data, “1997-W03” in case of weekly data, “2018-Q2” in case of quarterly data |
value | The value observed | 1000 |
*the key (the unique value that should not duplicated) for this table schema is series_id, timestamp. In other words, we cannot have two (or more) records in a table relating to the same time series and the same period of observation (timestamp)
We may have additional fields (columns) in this table or additional table specifying the features of time series. However, the above schema includes the fields that are necessary for further processing of time series data containing many time series. Here we do not impose restrictions on the types of the data.
If some observation is missing, the corresponding table line can be omitted or corresponding value can be denoted as ‘NA’. Observation can also contain censored data, etc., which can also be represented by additional agreements, but here these rules are not specified.
Example:
library(forvision)
head(example1_ts, 10)
series_id value timestamp
1 Y1 3103.96 1984
2 Y1 3360.27 1985
3 Y1 3807.63 1986
4 Y1 4387.88 1987
5 Y1 4936.99 1988
6 Y1 5379.75 1989
7 Y1 6158.68 1990
8 Y1 6876.58 1991
9 Y2 5389.80 1984
10 Y2 5384.40 1985
To cite this website, please use the following reference:
Sai, C., Davydenko, A., & Shcherbakov, M. (date). The Forvision Project. Retrieved from https://forvis.github.io/
© 2020 Sai, C., Davydenko, A., & Shcherbakov, M. All Rights Reserved. Short sections of text, not exceed two paragraphs, may be quoted without explicit permission, provided that full acknowledgement is given.