Learn R Programming

tsibble (version 0.5.3)

pedestrian: Pedestrian counts in the city of Melbourne

Description

A dataset containing the hourly pedestrian counts from 2015-01-01 to 2016-12-31 at 4 sensors in the city of Melbourne.

Usage

pedestrian

Arguments

Format

A tsibble with 66,071 rows and 5 variables:

  • Sensor: Sensor names (key)

  • Date_Time: Date time when the pedestrian counts are recorded (index)

  • Date: Date when the pedestrian counts are recorded

  • Time: Hour associated with Date_Time

  • Counts: Hourly pedestrian counts

References

Melbourne Open Data Portal

Examples

Run this code
# NOT RUN {
data(pedestrian)
# make implicit missingness to be explicit ----
pedestrian %>% fill_na()
# compute daily maximum counts across sensors ----
pedestrian %>% 
  group_by(Sensor) %>% 
  index_by(Date) %>% # group by Date and use it as new index
  summarise(MaxC = max(Count))
# }

Run the code above in your browser using DataLab