1 min read

Session 1

Lab 1

Download this R script, the Box Score Data Frame and the Playoff Data Frame.

The script opens the two rds files with data from NBA teams, merges on the Team column and calculates the mean assits, blocks, steals for the teams that went to the playoffs and the ones that did not. Finally, it creates an html table with the results.

Your job:

  1. Open the script file in RStudio and run it. Make sure that it works correctly. Do Playoff teams have more points on average?

  2. What functions does it use? What objects does it create?

  3. Can you identify which tasks each function supports (import, wrangling, model, communication)?

  4. How many rows does the df data frame have? Which are the columns? Use the str function to print information in the console.