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
)
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.
Value
Returns a tibble with the number of columns dependent on the value supplied to the `stat` argument.
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.
Examples
bart_player_game(year=2022, stat='box')
#> ── Player Game Stats ─────────────────────────────────────────── toRvik 1.0.2 ──
#> ℹ Data updated: 2022-09-06 00:10:07 EDT
#> # A tibble: 108,177 × 28
#> date year player exp team conf opp result min pts two_m two_a
#> <chr> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 2021-11-… 2022 Jalen… Sr Kans… B12 Mich… W 10 5 0 2
#> 2 2021-11-… 2022 Jalen… Sr Kans… B12 Tarl… W 12 10 2 2
#> 3 2021-11-… 2022 Jalen… Sr Kans… B12 Ston… W 15 7 2 2
#> 4 2021-11-… 2022 Jalen… Sr Kans… B12 Nort… W 10 0 0 1
#> 5 2021-11-… 2022 Jalen… Sr Kans… B12 Dayt… L 8 0 0 1
#> 6 2021-11-… 2022 Jalen… Sr Kans… B12 Iona W 5 0 0 0
#> 7 2021-12-… 2022 Jalen… Sr Kans… B12 St. … W 5 3 0 1
#> 8 2021-12-… 2022 Jalen… Sr Kans… B12 UTEP W 10 6 1 1
#> 9 2021-12-… 2022 Jalen… Sr Kans… B12 Miss… W 12 8 1 1
#> 10 2021-12-… 2022 Jalen… Sr Kans… B12 Step… W 4 2 0 0
#> # … with 108,167 more rows, and 16 more variables: three_m <dbl>,
#> # three_a <dbl>, fgm <dbl>, fga <dbl>, ftm <dbl>, fta <dbl>, oreb <dbl>,
#> # dreb <dbl>, reb <dbl>, ast <dbl>, tov <dbl>, stl <dbl>, blk <dbl>,
#> # pf <dbl>, id <chr>, game_id <chr>