Melbourne pedestrian sensor data
transport
time series
spatial
R package
API
Hourly counts of pedestrians walking past sensors in the City of Melbourne.
Overview
The Melbourne pedestrian sensor data provide hourly counts of pedestrians walking past sensors in downtown Melbourne. Some sensors have been installed since July 2009. This data is useful for studying temporal trends at multiple sites. Some locations have strong daily and weekday patterns, and some have none.
Getting the data
A small sample ships with tsibble:
library(tsibble)
pedestrianFresh data can be downloaded with rwalkr:
# remotes::install_github("earowang/rwalkr")
library(rwalkr)
walk <- melb_walk(from = as.Date("2025-01-01"), to = as.Date("2025-01-31"))Data dictionary
tsibble::pedestrian
| variable | class | description |
|---|---|---|
Sensor |
character | Sensor location name (key) |
Date_Time |
POSIXct | Date and time of the hourly count (index) |
Date |
Date | Date of the count |
Time |
integer | Hour of the day, 0–23 |
Count |
integer | Number of pedestrians counted in that hour |
Teaching ideas
- Subset in time.
- Make plots of series at a sensor to study daily, weekly, or longer term trends.
- Compare patterns at different sensors using plots.
- Explore missing value patterns.
- Examine approaches to imputing missing values.
- Forecast counts a few hours, days or months ahead.
- Combine with weather data to examine the relationship between pedestrian counts and temperature or precipitation.
Things to watch out for
- Sensors have gaps (implicit missing values); use
tsibble::has_gaps()andfill_gaps()to make them explicit. - Sensors are added, moved and removed over time, so the set of locations changes.
- COVID-19 lockdowns (2020–2021) produce large structural breaks.
Used in
- TODO: e.g. ETC5512, ETC5521, ETC5500
References
- City of Melbourne Pedestrian Counting System: https://www.pedestrian.melbourne.vic.gov.au/
- Wang, E. rwalkr: https://github.com/earowang/rwalkr