Melbourne pedestrian sensor data

transport
time series
spatial
R package
API
Hourly counts of pedestrians walking past sensors in the City of Melbourne.
Modified

3 December 2026

NoteAt a glance
Source City of Melbourne Pedestrian Counting System
Access R package rwalkr; sample in tsibble (tsibble::pedestrian)
Licence TODO: check City of Melbourne open data licence
Time coverage Some sensors since July 2009, hourly
Spatial coverage Melbourne CBD, sensors at fixed locations
Update frequency TODO
Size tsibble::pedestrian: 66,037 rows, 4 sensors, 2015–2016
Fresh? Yes, new counts are added continuously
Local? Yes, Melbourne CBD

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)
pedestrian

Fresh 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() and fill_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