Learn R Programming

timeseriesdb (version 1.0.0-1.1.2)

db_dataset_delete: Irrevocably Delete All Time Series in a Set and the Set Itself

Description

This function cannot be used in batch mode as it needs user interaction. It asks the user to manually input confirmation to prevent unintentional deletion of datasets.

Usage

db_dataset_delete(con, set_name, schema = "timeseries")

Arguments

con

RPostgres connection object.

set_name

character name of a dataset.

schema

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

Value

character name of the deleted set, NA in case of an error.

See Also

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

Run this code
# NOT RUN {
# }
# NOT RUN {
db_dataset_create(
  con = connection,
  set_name = "zrh_airport_data",
  set_description = "Zurich airport arrivals and departures ",
  schema = "schema"
)

db_dataset_delete(
  con = connection,
  set_name = "zrh_airport_data",
  schema = "schema"
)
# }

Run the code above in your browser using DataLab