bart_player_game: Get Player Game Stats

View source: R/bart_player_game.R

bart_player_gameR Documentation

Get Player Game Stats

Description

Returns detailed game-by-game player statistics on a variety of splits.

Usage

bart_player_game(
  year = current_season(),
  stat = NULL,
  game_id = NULL,
  player_id = NULL,
  exp = NULL,
  team = NULL,
  conf = NULL,
  load_all = FALSE,
  ...
)

Arguments

year

Year to filter.

stat

Indicates statistical split (see details).

game_id

Game to filter.

player_id

Player to filter.

exp

Player experience to filter.

team

Team to filter.

conf

Conference to filter.

load_all

Load all available data (boolean); defaults to FALSE.

...

Acceptable parameters for API. Used for function development

Details

Data is split on three statistical types, explained below:

box

Returns basic box score stats; sorts by ppg.

shooting

Returns play-by-play shooting splits; sorts by ppg.

advanced

Returns advanced metrics and possession-adjusted box score statistics; sorts by recruiting rank.

all

Used when 'load_all' is TRUE to return all data

Value

Returns a tibble with the number of columns dependent on the value supplied to the 'stat' argument.

Examples

try(bart_player_game(year=2022, stat='box'))


toRvik documentation built on Nov. 10, 2022, 5:50 p.m.