Skip to contents

[Experimental] Collects and formats unreported and late trips.

Usage

otp_report_issues(otpdata, date = as.character(max(otpdata$Date)))

Arguments

otpdata

OTP data, preferably containing data for at least 5 prior days.

date

Character vector of length 1 giving the date to update in YYYY-MM-DD format.

Value

A data.frame with columns:

TripID

RP route number

Yard

Bus Yard

Date

Date

RouteSetName

Route set name

Vehicle

Vehicle ID

CoveringVehicle

Covering Vehicle ID. Values in parentheses show covering vehicles on previous days.

Direction

Trip direction: I=inbound (AM) , O=outbound (PM)

Unreported

Yes if arrival time was not recorded by Onscreen or Zonar. Values in parentheses show previous days unreported.

ArrivedOutsideWindow

Yes if the trip arrival time was very far from the scheduled arrival time. Values in parentheses show previous days with arrivals outside arrival window.

Late

Delay time in minutes if arrival time was more than 15 minutes past expected time. Values in parentheses show previous days with late arrivals.

ExpectedTime

Expected arrival time

ArrivalTime

Actual arrival time recorded by Zonar or Onscreen

Load

Number of riders scheduled

TripStops_rec.tot

Number of recorded stop arrivals for this trip

VehicleStops_rec.tot

Number of recored stop arrivals for this bus

Notes

Put notes or comments here.