Fetch endgame breakeven two-point percentage from the pbpstats API
Source:R/pbpstats.R
get_endgame_breakeven_2_pct.Rd
A thin wrapper around the pbpstats API’s “get-endgame-breakeven-2-pct” endpoint.
Arguments
- league
Character. Which league to query; e.g.,
"nba"
or"wnba"
; defaults to"nba"
.- margin
Numeric. Point margin from the perspective of the team with the ball.
- seconds_remaining
Integer. Time remaining (in seconds) after the shot is made or rebounded.
- three_point_pct
Numeric. Three-point field goal percentage as a whole number (e.g.,
30
for 30%).
References
Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs