Calculate arrival or departure punctuality
calc_punctuality.Rd
What this set of functions should do:
check that we have all the required data columns
add the delay and delay group
calculate the punctuality per phase
Early (-15,-5]","Early (-5,0]","Late (0,5)","Late [5,15)","Within (-5,5)","Within (-15,15)"
Usage
calc_punctuality(.apdf, .apt)
check_punc_vars(.apdf)
add_delay_and_dlygrp(.apdf)
pivot_daily_dly_by_grp(.dlys, .dly_order = dly_order)
calc_earlylatewithin_bins(.dlys_wide)