Counting office occupants
Imagine you're an office facility manager and want to know how many people are present throughout the day. You've installed a sensor at the entrance that counts the number of people entering and leaving the building. The sensor sends an update at the end of every 20 minute time slot if at least one person passed.
To create a dataset ready for visualization, you'll combine the different techniques you've learned so far.
The dplyr and ggplot2 packages have been pre-loaded for you.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Reshaping Data with tidyr
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
sensor_df %>%
# Complete the time column with a 20 minute interval
___(time = ___(___, ___, by = ___),
fill = ___(___ = ___, ___ = ___))