This function reads a time series from a postgres database, that uses key value pair storage (hstore), to archive time series. After reading the information from the database a standard R time series object of class 'ts' is built and returned.
readTimeSeries(series, con, tbl = "v_timeseries_json",
schema = "timeseries")
character vector of series names.
a PostgreSQL connection object
character string denoting the name of the view containing the json records.
SQL schema name. Defaults to timeseries.