Skip to contents

A thin wrapper around the pbpstats API’s “get-game-stats” endpoint.

Usage

get_game_stats(game_id, type)

Arguments

game_id

Integer or character. The pbpstats ID of the game.

type

Character. One of:

  • "Player"

  • "Lineup"

  • "LineupOpponent"

.

Value

A tibble of game statistics as returned by the API.

References

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