Constructs a TmRTQuery object for the given MBTA rapid transit line.
Chain builder methods to set context, then call a terminal method to fetch
data.
Examples
if (FALSE) { # \dontrun{
# Headways at Harvard on the Red Line
tm_rt_query("Red")$stop("Harvard")$headways("2024-01-15")
# Travel times (direction required for stop ID resolution)
tm_rt_query("Red")$from_stop("Alewife")$to_stop("Kendall/MIT")$direction("southbound")$travel_times("2024-01-15")
# Line-level aggregate (no stop needed)
tm_rt_query("Red")$date_range("2024-01-01", "2024-01-31")$trip_metrics("daily")
} # }