Skip to contents

Pulls every row of anon_example_weather_data for the location named in argset$location_code. Returns the date, temp_max and temp_min columns under the name data, ordered by date.

Usage

weather_export_plots_data_selector(argset, tables)

Arguments

argset

Argset

tables

DB tables

Value

A named list with one element, data: a data.table of date, temp_max and temp_min.

See also

weather_export_plots_action(), which consumes this list, and cs9::mandatory_db_filter() for the filter it applies. cs9example has no vignettes of its own; how cs9 pairs a data selector with an action is documented in cs9::SurveillanceSystem_v9.

Other cs9 task data selectors: weather_clean_data_data_selector(), weather_download_and_import_rawdata_data_selector()

Examples

if (FALSE) { # \dontrun{
# Needs a live cs9 PostgreSQL database: it reads the
# anon_example_weather_data table.
weather_export_plots_data_selector(
  argset = global$ss$shortcut_get_argset("weather_export_plots"),
  tables = global$ss$shortcut_get_tables("weather_export_plots")
)
} # }