PBWG regional traffic summary (EUR view)
pbwg_traffic_summary.RdPBWG workflow that merges DAIO, H/M/L, and market segment statistics into a single daily table.
Usage
pbwg_traffic_summary(
wef,
til,
region = "ECAC",
schema = c("pbwg", "chn"),
conn = NULL
)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
DAIO region code. Defaults to
"ECAC".- schema
Output shape:
"pbwg"(default, full EUR table with ARRS/DEPS, domestic, overflights, and PAX) or"chn"(lean CHN-EUR dashboard schema).- 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 list with the processed data, an optional plot (if plotly
is installed), diagnostic details, and the raw component tables.
- data
Tibble of daily metrics. For
schema = "pbwg"columns areREG,DATE,FLIGHTS,ARRS,DEPS,HEAVY,MED,LIGHT,ARRS_DOM,DEPS_DOM,OVR_FLTS,PAX,CARGO,OTHER,D,A,I,O,SCHED,CHARTER. Forschema = "chn"columns areREG,DATE,FLIGHTS,D,A,I,O,HEAVY,MED,LIGHT,SCHED,CHARTER,CARGO,OTHER.- plot
Optional
plotlyobject showing DAIO breakdown ifplotlyis installed, otherwiseNULL.- diagnostics
List with
deltas(sanity-check calculations) andmessages(warnings about imbalances).- raw
List of component tables:
weight_segment,market_segment, anddaio.