Skip to contents

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

Usage

bart_player_game(year = current_season(), stat = "all")

Arguments

year

Defaults to current season (YYYY).

stat

Indicates statistical split (see details).

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.

adv

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

Examples

bart_player_game(year=2022, stat='box')
#> # A tibble: 108,177 x 27
#>    date        year player      exp   team  opp   result   min   pts two_m two_a
#>    <date>     <dbl> <chr>       <chr> <chr> <chr> <chr>  <dbl> <dbl> <dbl> <dbl>
#>  1 2021-11-09  2022 Jalen Cole~ Sr    Kans~ Mich~ W         10     5     0     2
#>  2 2021-11-12  2022 Jalen Cole~ Sr    Kans~ Tarl~ W         12    10     2     2
#>  3 2021-11-18  2022 Jalen Cole~ Sr    Kans~ Ston~ W         15     7     2     2
#>  4 2021-11-25  2022 Jalen Cole~ Sr    Kans~ Nort~ W         10     0     0     1
#>  5 2021-11-26  2022 Jalen Cole~ Sr    Kans~ Dayt~ L          8     0     0     1
#>  6 2021-11-28  2022 Jalen Cole~ Sr    Kans~ Iona  W          5     0     0     0
#>  7 2021-12-03  2022 Jalen Cole~ Sr    Kans~ St. ~ W          5     3     0     1
#>  8 2021-12-07  2022 Jalen Cole~ Sr    Kans~ UTEP  W         10     6     1     1
#>  9 2021-12-11  2022 Jalen Cole~ Sr    Kans~ Miss~ W         12     8     1     1
#> 10 2021-12-18  2022 Jalen Cole~ Sr    Kans~ 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 <chr>, tov <chr>, stl <chr>, blk <chr>,
#> #   pf <chr>, id <chr>, game_id <chr>