Lab
Rewrite this R script from session 1 to use the pipe operator.
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.