16 Age of Planes
Readings
Guided Instruction
PowerPoint explanation of joins and link to video walkthrough
In a previous task we used the flights
tibble from the nycflights13
package to answer questions about flight delays. That same package contains four other tibbles that are related to flights and can help us answer more complex questions. Run data(package = "nycflights13")
to see a list of the tibbles with a brief description.
For this task we are trying to answer two questions:
What is the relationship between departure delays and age of the plane? What is the relationship between airline carrier and age of the plane?
- Join the
flights
andplanes
tibbles. - For each flight, calculate the age of the plane that was used.
- Create a chart that looks at the distribution of departure delays by age (or age group). Do you notice any patterns?
- Create a new column that groups age into 0-10, 11-20, 21-30, and >30
- Continue to work with your age data, but join on the
airlines
tibble so you have the full name of the carrier. - Create a chart that looks at the distribution of age by carrier. Write about patterns you see (or lack thereof).
- Create a third chart using any variable(s) you think will be related to age. (You can use any/all of the other tibbles in the
nycflights13
package.) Write about patterns you see (or lack thereof). - Render the
.qmd
file. Push all the files created in the rendering process into your GitHub repository.
Submit
In I-learn submit a link to the .md
file containing your chart(s) on GitHub.