db_dataset_create {timeseriesdb}R Documentation

Create a New Dataset

Description

A dataset is a family of time series that belong to the same topic. By default all series stored with 'db_store_ts' belong to a default set. In order to assign them a different set, it must first be created with 'db_dataset_create' after which the series may be moved with db_ts_assign_dataset.

Usage

db_dataset_create(
  con,
  set_name,
  set_description = NULL,
  set_md = NULL,
  schema = "timeseries"
)

Arguments

con

RPostgres connection object.

set_name

character name of a dataset.

set_description

character description about the set. Default to NA.

set_md

meta information data about the set. Default to NA.

schema

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

Value

character name of the created set

See Also

Other datasets functions: 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(), db_ts_get_dataset()

Examples


## Not run: 

db_dataset_create(
  con = connection,
  set_name = "zrh_airport_data",
  set_description = "Zurich airport arrivals and departures ",
  schema = "schema"
)

## End(Not run)

[Package timeseriesdb version 1.0.0-1.1.2 Index]