Learn R Programming

timeseriesdb (version 1.0.0-1.1.2)

db_ts_get_last_update: Get the times series last update

Description

Get the times series last update

Usage

db_ts_get_last_update(con, ts_keys, schema = "timeseries")

Arguments

con

RPostgres connection object.

ts_keys

character vector of time series identifiers.

schema

character name of the database schema. Defaults to 'timeseries'

See Also

Other time series functions: db_collection_read_ts(), db_dataset_read_ts(), db_ts_delete_latest_version(), db_ts_delete(), db_ts_read_history(), db_ts_read(), db_ts_store(), db_ts_trim_history()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
db_ts_store(con = connection, zrh_airport, schema = "schema")

# get last update for one key
db_ts_get_last_update(
  con = connection,
  ts_keys = "ch.zrh_airport.departure.total",
  schema = "schema")

# get last update for multiple keys
db_ts_get_last_update(
  con = connection,
  ts_keys = c(
    "ch.zrh_airport.departure.total",
    "ch.zrh_airport.arrival.total"
  ),
  schema = "schema"
)
# }

Run the code above in your browser using DataLab