Returns detailed, season-long player statistics on a variety of splits.
Usage
bart_player_season(year = current_season(), stat = "all", conf_only = FALSE)
Arguments
- year
Defaults to current season (YYYY).
- stat
Indicates statistical split (see details).
- conf_only
Logical. Filters data by conference-only play; defaults to `FALSE`.
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_season(year=2019, stat='adv', conf_only=TRUE)
#> # A tibble: 4,420 x 28
#> player pos exp team conf g min porpag dporpag ortg adj_oe drtg
#> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 R.J. B~ Wing~ Fr Duke ACC 18 92.1 5.88 4.57 108. 133. 101.
#> 2 Cam Re~ Wing~ Fr Duke ACC 17 78.3 2.14 4.38 93.1 106. 98.5
#> 3 Nassir~ Wing~ Fr Nort~ ACC 18 43.3 1.72 2.37 102. 116. 96.4
#> 4 Zion W~ Wing~ Fr Duke ACC 13 53.1 7.05 4.59 130. 157. 90.3
#> 5 Charle~ C Fr West~ CUSA 18 79.5 2.89 3.98 109. 114. 91.8
#> 6 Romeo ~ Wing~ Fr Indi~ B10 20 84.9 4.20 3.71 105. 123. 106.
#> 7 EJ Mon~ C Fr Kent~ SEC 18 36.9 0.795 2.40 105. 103. 89.5
#> 8 Quenti~ Comb~ Fr Kans~ B12 18 68 0.614 3.05 89.9 94.0 105.
#> 9 Simi S~ PF/C Fr Vand~ SEC 18 65.8 0.387 2.74 78.9 91.7 108.
#> 10 Ashton~ Scor~ Fr Kent~ SEC 18 80 3.18 4.48 110. 116. 96.4
#> # ... with 4,410 more rows, and 16 more variables: adj_de <dbl>, stops <dbl>,
#> # obpm <dbl>, dbpm <dbl>, bpm <dbl>, oreb <dbl>, dreb <dbl>, ast <dbl>,
#> # to <dbl>, blk <dbl>, stl <dbl>, ftr <dbl>, pfr <dbl>, rec <dbl>,
#> # pick <dbl>, id <dbl>