![]() Its fleet of 5,725 buses is the largest municipal bus fleet in the United States and operates 24/7. As of February 2018, MTA Regional Bus Operations runs 234 local routes, 71 express routes, and 20 Select Bus Service routes. It was created in 2008 to consolidate all bus operations in New York City operated by the MTA. MTA Regional Bus Operations ( RBO) is the surface transit division of the Metropolitan Transportation Authority (MTA). New York City Transit Authority, MTA Bus Company Local, limited-stop, bus rapid transit, and express bus service ![]() Let’s create a subset of the data only containing the bus line B54 and direction 0 so that we can create a 3D Time-space diagram.Surface transit division of New York's Metropolitan Transportation Authority We stored MTA Bustime Data using their API for a day for all the buses and converted it into pings.csv # Read the input into a dataframe df <- read.csv("./Data/pings.csv", head=TRUE, skip=1) # Check the class of the RecordedAtTime column class(df$RecordedAtTime) # "factor" # convert the class of the RecordedAtTime columnĭf$RecordedAtTime <- as.POSIXlt(df$RecordedAtTime) # Extract hour from the column head(df$RecordedAtTime$hour) # 7 8 7 8 8 7 If you are interested about how to do similar HTML pages, please visit: Let’s first load the library we are going to use in R.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |