View source: R/bart_conf_factors.R
bart_conf_factors | R Documentation |
Returns conference-wide four factor data on a variety of splits, including date range, quadrant level, opponent ranking, game location, and game type.
bart_conf_factors( year = current_season(), conf = NULL, opp_conf = NULL, type = NULL, location = NULL, start = NULL, end = NULL )
year |
Filters to year (YYYY) |
conf |
Filters to conference |
opp_conf |
Filters to opponent conference |
type |
Filters to game type ('nc', 'conf', or 'post') |
location |
Filters to game location ('H', 'A', or 'N') |
start |
Filters by starting date (YYYY-MM-DD) |
end |
Filters by ending date (YYYY-MM-DD) |
For a brief explanation of each factor and its computation, please visit KenPom's blog. Data can be split on five variables:
Splits on game location; 'all', 'home', 'away', 'neutral', and 'road' (away + neutral).
Splits on game type; 'all', 'nc' (non-conference), 'conf' (conference), 'reg' (regular season), 'post' (post-season tournaments), 'ncaa' (NCAA tournament).
Splits by quadrant level; 1-4 with 0 indicating 1-A games.
Splits by opponent T-Rank position, adjusted for game location.
Splits by date range (YYYYMMDD).
Returns a tibble with 21 columns:
conf
character.
rating
double. Expected scoring margin against an average team on a neutral court.
rank
double.
adj_o
double.
adj_o_rank
double.
adj_d
double.
adj_d_rank
double.
tempo
double.
off_ppp
double. Raw points scored per possession.
off_efg
double. Team effective FG%.
off_to
double. Offensive turnover rate.
off_or
double. Offensive rebound rate.
off_ftr
double. Offensive free throw rate.
def_ppp
double. Raw points allowed per possession.
def_efg
double. Effective FG% allowed.
def_to
double. Turnover rate forced.
def_or
double. Defensive rebound rate.
def_ftr
double. Free throw rate allowed.
wins
integer.
losses
integer.
games
integer.
try(bart_conf_factors(type='nc'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.