nbagl_pbp: *Get NBA Data API Play-by-Play for G-League Games*

View source: R/nbagl_pbp.R

nbagl_pbpR Documentation

Get NBA Data API Play-by-Play for G-League Games

Description

Scrapes the NBA Data API for Play By Play for G League games

Usage

nbagl_pbp(game_id, ...)

Arguments

game_id

Game ID - 10 digits, i.e. 0021900001

...

Additional arguments passed to an underlying function like httr.

Details

 nbagl_pbp(game_id = "2012200001")

Value

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

Author(s)

Billy Fryer

See Also

Other NBA G-League Functions: nbagl_players(), nbagl_schedule(), nbagl_standings()


hoopR documentation built on Nov. 26, 2023, 1:07 a.m.