| “Fare.csv” |
Numeric value for train fare measured in Ringgit Malaysia (RM). |
| “Time.csv” |
Numeric value for train ride duration measured in minutes. |
| “Route.csv” |
String value for train route. |
Questions :
- What’s the minimum amount of money required to board the train from Gombak to somewhere else?
Fare <- read.csv(file = 'Fare.csv')##read file and store as data frame
print(max(Fare$Gombak)) # max() used because user might stop other station
- How many minutes does the train take from Gombak to KL Sentral?
Time <- read.csv(file = 'Time.csv') ##read file and store as data frame
print(Time[1,4]) ##call the station index instead of station names