View source: R/bart_player_season.R
bart_player_season | R Documentation |
Returns detailed, season-long player statistics on a variety of splits.
bart_player_season( year = current_season(), id = NULL, team = NULL, stat = NULL, load_all = FALSE, ... )
year |
Defaults to current season (YYYY). |
id |
Filters to player ID |
team |
Filters to team |
stat |
Stat to return ('advanced', 'box', 'shooting') |
load_all |
Load all available data (boolean); defaults to FALSE. |
... |
Acceptable parameters for API. Used for function development |
Data is split on three statistical types, explained below:
Returns basic box score stats; sorts by ppg.
Returns play-by-play shooting splits; sorts by ppg.
Returns advanced metrics and possession-adjusted box score statistics; sorts by recruiting rank.
Used when 'load_all' is TRUE to return all data
Returns a tibble with the number of columns dependent on the value supplied to the 'stat' argument.
try(bart_player_season(year=2019, stat='advanced'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.