Skip to contents

A thin wrapper around the pbpstats API’s “get-team-leverage-summary” endpoint.

Usage

get_team_leverage_summary(league = "nba", season, leverage)

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".

leverage

Character. One or more leverage levels; one of:

  • "VeryLow"

  • "Low"

  • "Medium"

  • "High"

  • "VeryHigh"

; comma‐separated for multiple values; defaults to NULL.

Value

A tibble of team leverage summary as returned by the API.

References

Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs