NBAr 1.1 update

April 9, 2018

Hola!

Just wanted to let you all know that I recently updated NBAr with couple of new functions:

  • getAllPlaytypes
  • getAllTracking
  • getHustleBoxscore
  • getMatchups

Interesting story with getAllPlaytypes and getAlltracking - I just recently started to using player tracking and playtypes data and realized they really need wrapping functions to download and combine all at once. Here they are - quite simple, quite good. Both create datasets with +120 columns but I made sure there are no duplicates or some dissapearing players.

at <- getAllTracking(2017,'Player')

ap <- getAllPlaytypes(2017,'Player')

HustleBoxscore is basically hustle stats per game, which might be useful.

hb <- getHustleBoxscore(gameID)

Matchups are really cool data to analyze and I am so happy that NBA decided to share it with people. Provide every single pair of players playing against each other during the game. Score, time etc. It’s awesome to analyze, great stuff to use in models.

matchup <- getMatchups(gameID)

Also added small fixes to couple of existing functions. In next update I plan to add some ggplot based plotting functions for basketball-related plots (right now thinking mostly about shotchart, but I guess there are other possibilities as well)

Thank you for reading and enjoy NBAr package!