Closed eroten closed 4 years ago
For hourly speed data I do:
# CALCULATE SPEED ---
hourlydat_sensor[,occupancy.pct := (occupancy.sum/216000)]
hourlydat_sensor[,speed:=ifelse(volume.sum != 0,
(volume.sum*detector_field)/(5280*occupancy.pct), 0)]
What intervals do you think are needed? Hourly, time periods (morning rush, evening rush), daily?
Speed was integrated into aggregate_sensor()
in PR #12
Write function and vignette for calculating speed from
pull_sensor()
return