All functions

add_day_type()

Append a column with a given date's day type (weekday or weekend), day of week, and day category (holiday, weekend, or weekday)

add_distance()

Find the distance between all sensors based on corridor and direction. Essential for estimating travel time.

aggregate_sensor()

Aggregate raw sensor data to a chosen level

generate_spatial_lines()

Generate spatial lines dataset from sensor configuration

pull_configuration()

Pull metro sensor configuration

pull_sensor()

Pull sensor volume and occupancy

pull_sensor_espeed()

Pull sensor estimated speed data

pull_sensor_headway()

Pull sensor headway data

pull_sensor_ids()

Function to pull all sensor IDs for a district

pull_sensor_length()

Pull vehicle length data for a single sensor and date

pull_sensor_speed()

Pull measured sensor speed data

replace_impossible()

Replace impossible volume and occupancy values with NA at given interval

scrub_sensor()

Scrub sensor level data