Turn in one copy for each group, both HTML and R Markdown files. If group members are not present in class they will be required to complete their own lab to receive credit. Please turn in both an HTML file and your R Markdown script. This is due Monday, October 2 at 10AM.

Lab Overview

The entire lab will be worth 100 points. Clarity of code, including comments and interpretable variables names, along with thoughtful writing with an emphasis on concise interpretations will be worth 10.

Questions

Answer the following questions in this R Markdown document. Please include code where necessary.

1. Capital BikeShare Data

This data set contains single bike trips from January - March of 2017 for the Capital BikeShare system in Washington, D.C.

b. (15 points)

Summarize the data set. What does each column represent? What about each row?

c. (25 points)

Using commands from the dplyr packaged, compute how many trips were made each day of the month. (I have filtered out cases that started and ended on different days.) Note this will require an intermediate step to extract the day of the month.

d. (40 points)

Use the piping structure from dplyr to compute the average trip length by member type. As a hint, the end date and start date have time stamps that you’ll need to extract to compute the trip time for each bike rental.

e. (5 points)

Describe one pro or con about using dplyr for data wrangling.