Fetch WOWY (With Or Without You) combination stats from the pbpstats API
Source:R/pbpstats.R
get_wowy_combination_stats.RdA thin wrapper around the pbpstats API’s “get-wowy-combination-stats” endpoint.
Usage
get_wowy_combination_stats(
league = "nba",
season,
season_type = "Regular Season",
team_id,
player_id,
leverage = NULL,
only_common_games = NULL
)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""All"
; defaults to
"Regular Season".- team_id
Integer or character. The pbpstats ID of the team.
- player_id
Integer, character, or numeric vector. One or more pbpstats player IDs to include in the combination.
- leverage
Character. One or more leverage levels; one of:
"VeryLow""Low""Medium""High""VeryHigh"
; comma‐separated for multiple values; defaults to
NULL.- only_common_games
Logical. If
TRUE, include only games in which all specifiedplayer_ids played; defaults toFALSE.
References
Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs