db_ts_get_dataset {timeseriesdb} | R Documentation |
Find Datasets Given a Set
Description
Return set identifiers associated with a vector of keys. If a ts key does not exist in the catalog, set_id will be NA.
Usage
db_ts_get_dataset(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' |
Value
data.frame with columns 'ts_key' and 'set_id'
See Also
Other datasets functions:
db_dataset_create()
,
db_dataset_delete()
,
db_dataset_get_keys()
,
db_dataset_get_last_update()
,
db_dataset_list()
,
db_dataset_trim_history()
,
db_dataset_update_metadata()
,
db_ts_assign_dataset()
Examples
## Not run:
# one key
db_ts_get_dataset(
con = connection,
ts_keys = "ch.zrh_airport.departure.total",
schema = "schema"
)
# multiple keys
db_ts_get_dataset(
con = connection,
ts_keys = c(
"ch.zrh_airport.departure.total",
"ch.zrh_airport.arrival.total"
),
schema = "schema"
)
## End(Not run)
[Package timeseriesdb version 1.0.0-1.1.2 Index]