bart_game_factors: Get Game Four Factors

View source: R/bart_game_factors.R

bart_game_factorsR Documentation

Get Game Four Factors

Description

Returns game-by-game four factor statistics.

Usage

bart_game_factors(
  year = current_season(),
  team = NULL,
  conf = NULL,
  opp_conf = NULL,
  type = NULL,
  location = NULL,
  result = NULL
)

Arguments

year

Defaults to current season (YYYY).

team

Filters to team.

conf

Filters to conference.

opp_conf

Filters to opponent's conference.

type

Filters for game type ('nc', 'conf', 'conf_t', 'post')

location

Filters for game location ('H', 'A', 'N')

result

Filters for game result.

Details

For a brief explanation of each factor and its computation, please visit KenPom's blog. 'avg_marg' and 'opp_avg_marg' is the the average lead or deficit during a game.

Value

Returns a tibble of four factor statistics

Examples

try(bart_game_factors(year=2022))


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