Learn R Programming

timeseriesdb (version 1.0.0-1.1.2)

db_dataset_update_metadata: Update Description and/or Metadata of a Dataset

Description

Update Description and/or Metadata of a Dataset

Usage

db_dataset_update_metadata(
  con,
  set_name,
  description = NULL,
  metadata = NULL,
  metadata_update_mode = "update",
  schema = "timeseries"
)

Arguments

con

RPostgres connection object.

set_name

character name of a dataset.

description

character New description. If set to NA (default) the description is left untouched

metadata

list Metadata update (see metadata_update_mode)

metadata_update_mode

character one of "update" or "overwrite". If set to "update", new fields in the list are added to the existing metadata and existing fields overwritten. If NA nothing happens in update mode. If set to "overwrite" ALL existing metadata is replaced.

schema

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

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_ts_assign_dataset(), db_ts_get_dataset()

Examples

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

Run the code above in your browser using DataLab