nbagl_pbp | R Documentation |
Scrapes the NBA Data API for Play By Play for G League games
nbagl_pbp(game_id, ...)
game_id |
Game ID - 10 digits, i.e. 0021900001 |
... |
Additional arguments passed to an underlying function like httr. |
nbagl_pbp(game_id = "2012200001")
Returns a data frame of play by play with the following columns:
col_name | types |
period | integer |
evt | integer |
wallclk | character |
cl | character |
de | character |
locX | integer |
locY | integer |
opt1 | integer |
opt2 | integer |
opt3 | integer |
opt4 | integer |
mtype | integer |
etype | integer |
opid | character |
tid | integer |
pid | integer |
hs | integer |
vs | integer |
epid | character |
oftid | integer |
ord | integer |
pts | integer |
Billy Fryer
Other NBA G-League Functions:
nbagl_players()
,
nbagl_schedule()
,
nbagl_standings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.