6 More wrangling and visualizing data

This chapter covers

  • Subsetting data sets
  • Separating and joining data sets
  • Renaming and converting variables
  • Sorting data and returning cumulative sums
  • Transforming data sets
  • Indexing records
  • Converting sqldf code to dplyr
  • Creating and customizing bar charts

According to conventional wisdom, no doubt influenced by late-game bias where the final plays in a close game create the most indelible memories, NBA games are won in the fourth quarter. In other words, teams that win the fourth quarter and play best down the stretch, regardless of what might have happened over the first three quarters, will usually be victorious. This suggests that the last 12 minutes of an NBA game are more significant than the first ...

Get Statistics Slam Dunk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.