Fetch four-factor on/off metrics from the pbpstats API
Source:R/pbpstats.R
get_four_factor_on_off.Rd
A thin wrapper around the pbpstats API’s “get-four-factor-on-off” endpoint.
Usage
get_four_factor_on_off(
league = "nba",
season,
season_type = "Regular Season",
team_id,
player_id
)
Arguments
- league
Character. Which league to query; e.g.,
"nba"
or"wnba"
; defaults to"nba"
.- season
Character or integer. The season to query; e.g.,
"2024-25"
.- season_type
Character. One of
"Regular Season"
,"Playoffs"
,"PlayIn"
, or"All"
; defaults to"Regular Season"
.- team_id
Integer or character. The pbpstats ID of the team.
- player_id
Integer or character. The pbpstats ID of the player.
References
Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs