1 min read

Session 5

Lab

  1. Rewrite this R script from session 1 to use the pipe operator.

  2. Possesions are calculated with this equation (Kubatko 2007):

\[POSS = P2A + P3A + 0.44 \times FTA - OREB + TOV\]

Use the box.rds to calculate the POSS factor for each team and list the 3 teams with higher possesion values in each conference. Create a version creating intermediate variables in each step and another version using the pipe opeartor %>%. Compare both approaches.

  1. Create an Rmarkdown document. The document should open add.rds and box.rds. Join the two files by the team variable and create one table per conference with the teams that made the playoffs. The final document should look like this