bart_conf_factors: Get Conference Four Factor Statistics

View source: R/bart_conf_factors.R

bart_conf_factorsR Documentation

Get Conference Four Factor Statistics

Description

Returns conference-wide four factor data on a variety of splits, including date range, quadrant level, opponent ranking, game location, and game type.

Usage

bart_conf_factors(
  year = current_season(),
  conf = NULL,
  opp_conf = NULL,
  type = NULL,
  location = NULL,
  start = NULL,
  end = NULL
)

Arguments

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)

Details

For a brief explanation of each factor and its computation, please visit KenPom's blog. Data can be split on five variables:

venue

Splits on game location; 'all', 'home', 'away', 'neutral', and 'road' (away + neutral).

type

Splits on game type; 'all', 'nc' (non-conference), 'conf' (conference), 'reg' (regular season), 'post' (post-season tournaments), 'ncaa' (NCAA tournament).

quad

Splits by quadrant level; 1-4 with 0 indicating 1-A games.

top

Splits by opponent T-Rank position, adjusted for game location.

start/end

Splits by date range (YYYYMMDD).

Value

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.

Examples

try(bart_conf_factors(type='nc'))


toRvik documentation built on Nov. 10, 2022, 5:50 p.m.