Skip to contents

Pulls the daily, municipality-level, total-age, total-sex rows out of anon_example_weather_rawdata. Returns them under the name date_municip, ordered by location and date.

Usage

weather_clean_data_data_selector(argset, tables)

Arguments

argset

Argset

tables

DB tables

Value

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

See also

weather_clean_data_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_download_and_import_rawdata_data_selector(), weather_export_plots_data_selector()

Examples

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