Question: Exercise 6 - Dealing with entry error Every month, average weekday commuter boat ridership was around 4 , 0 0 0 . Then, one month

Exercise 6- Dealing with entry error
Every month, average weekday commuter boat ridership was around 4,000. Then, one month it jumped to
40,000 without warning? Unless the Olympics were happening in Boston that month (they werent), this
value is certainly an error. You can assume that whoever was entering the data that month accidentally
typed 40 instead of 4.
1. Locate the row and column of the incorrect value.
2. Replace the incorrect value with 4.
# test your ability to right this code from scratch rather than just
# filling in the blanks :)
_______
Congrats, your data is now clean and ready for analysis.
Exercise 7- Performing descriptive analysis
1. Compute the average ridership per mode.
mbta %>%
group_by(_______)%>%
summarize(avg_ridership =_______)
2. Compute the average ridership per mode for the month of January.
mbta %>%
filter(month ==_____)%>%
group_by(_______)%>%
summarize(avg_ridership =_______)
6
3. Which year had the largest total ridership for the boat mode?
mbta %>%
filter(_______)%>%
group_by(year)%>%
summarize(total_riders =____(thou_riders))
4. On average, which month experiences the greatest number of passengers on the Heavy Rail mode?
# test your ability to right this code from scratch rather than just
# filling in the blanks :)
_______

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!