get_route: Allow users to get route names.

Description Usage Arguments Value Examples

Description

This function allows users to get route names based on the specified bus number. If bus number is not specified, it will provide the all bus number with its corresponding route names.

Usage

1
get_route(bus = NULL, key = Sys.getenv("BUS_CLIENT_KEY"))

Arguments

bus

Bus number.

key

Key for accessing the API.

Value

Dataframe with bus number and its corresponding route name.

Examples

1
2
get_route()
get_route(bus = 5)

ytingc/rCTA documentation built on May 15, 2019, 1:12 p.m.