NM area traffic by market segment
pbwg_market_segment_tfc_counts.RdCounts Network Manager area flights per day and market segment, filtering the
flights fact to operational statuses (TE, TA, AA) and the requested
date window. Segments are resolved through SWH_FCT.DIM_FLIGHT_TYPE_RULE,
and missing day/segment combinations are backfilled with zeros to give a
complete calendar grid.
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.- 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 one row per day/market segment and an
attached "sql" attribute. Columns:
YEAR: numeric year extracted fromENTRY_DATE.MONTH: numeric month extracted fromENTRY_DATE.ENTRY_DATE: truncated IFPZ entry date (UTC).MARKET_SEGMENT: market segment label fromDIM_FLIGHT_TYPE_RULE.MARKET_SEGMENT_DESCR: description fromDIM_FLIGHT_TYPE_RULE.UNIT_CODE: fixed"NM_AREA".UNIT_NAME: fixed"Total Network Manager Area".FLIGHT: count of flights for the date/segment combination.