Rail_TimeTable | R Documentation |
The function is used to download the timetable of railway system. There are two types of format of time table, general and station. general
means to record the time table by each train No., while station
represents record the time table based on each station. Please look up the "record" arguments below to find out details of settings.
Rail_TimeTable(access_token, operator, record, out=F)
access_token |
Your access token given by TDX platform. This can be derived from the function |
operator |
Please fill in the operator code of given railway system. Checking out the appropriate operator code in dataframe |
record |
The types of format of time table, including |
out |
If the result should be exported to the local, please fill in the directory. The default value is FALSE, which does not export the data. Note that the directory must contain ".csv" or ".txt" when exporting text file. |
Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au
# retrieve the general time table of TRA
Rail_TimeTable(access_token, operator="TRA", record="general")
# retrieve the station time table of TRTC (Taipei Metro)
Rail_TimeTable(access_token, operator="TRTC", record="station")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.