Daily DAIO traffic counts
pbwg_daio.RdRuns the DAIO aggregation used by PBWG, grouping the FIR-time entries by
DAIO flag and region. Optional inclusion of SK_SOURCE_ID reproduces the
CHN-specific variant of the legacy Python query.
Arguments
- wef
Start date (inclusive). Can be anything that
lubridate::as_date()understands.- til
End date (inclusive). Can be anything that
lubridate::as_date()understands.- region
One or more TZ codes (e.g.
"ECAC"). Values are embedded into the SQLIN (...)clause verbatim.- include_source_id
Should
SK_SOURCE_IDbe returned? Defaults toFALSE, mirroring the classic DAIO table.- conn
Optional Oracle DBI::DBIConnection. When omitted a fresh connection to
PRUDEVis created viaeurocontrol::db_connection(), with access toSWH_FCT.V_FAC_FLIGHT_MSandPRUDEV.V_PRU_AIRCRAFT_CATEGORY.
Value
A tibble::tibble() with "sql" attribute and columns:
YEARNumeric year derived fromENTRY_TIME.MONTHNumeric month derived fromENTRY_TIME.ENTRY_DATEDate (UTC) of the FIR entry.TZ_NAMERegion name fromDIMCL_TZ.DAIODAIO flag (D,A,I,O).SK_SOURCE_IDOptional source ID wheninclude_source_id = TRUE.FLIGHTTotal flights for the grouping.