Prepares data by selecting and re-naming columns to conform to the format previously
used for raw OTP data.
Arguments
- data
A
data.framereturned from thereport_otp()function.- oldstyle
Ignore
- ...
Ignored for now.
Value
A data.frame with columns:
- Date
chrDate in mm/dd/yyyy format- concatRouteDate
chrRoute number and date, can be used as ID- Route
intVisible route number- Vehicle
chrVehicle number- Anchor.Location
chrAnchor location- Planned.Start.Time
chrPlanned start time- Planned.Anchor.Time
chrPlanned anchor time- Actual.Arrival.Time
chrActual arrival time- Delay.Minutes.
intDelay time, in minutes- OnTimeRateByAnchor
dblArrived on or before planned anchor time- Within5MinOfAnchor
dblArrived within 5 minutes of planned anchor time- Within10MinOfAnchor
dblArrived with 10 minutes of planned anchor time- TrueOnTime
dblArrived within 15 minutes of planned anchor time- Late10Min
dblArrived within 25 minutes of planned anchor time- Late15Min
dblArrive within 30 minutes of planned anchor time- Late25Min
dblArrived within 40 minutes of planned anchor time- Late30Min
dblArrived within 45 minutes of planned anchor time- AMPM
chrAM or PM route- TimeTier
chrPlanned arrival time tier- TypeOfBus
chrBus type- BusDay
chrBus and day combined- Yard
chrBus yard- X.1
chrIgnore- X.2
chrIgnore- AnchorTimeConverted
dblAnchor Time in seconds- X.5
chrIgnore- Uncovered
lglWas the route reported to be uncovered- excludedShuttles
lglIs the route a shuttle that should be excluded from OTP calc- Direction
chrInbound or Outbound route
Details
Note that this function does not need to be called directly before uploading
OTP reports. The update_otp_report() function will prepare raw data for upload automatically.