Skip to contents

Get Four Factors Data

Usage

kp_fourfactors(min_year, max_year = most_recent_mbb_season())

Arguments

min_year

First year of data to pull

max_year

Last year of data to pull

Value

Returns a tibble of four factors ratings

col_nametypesdescription
teamcharacterTeam-side label or team identifier.
confcharactercharacter.
adj_tnumericAdj t.
adj_t_rknumericAdj t rk.
adj_onumericAdj o.
adj_o_rknumericAdj o rk.
off_e_fg_pctnumericOff e field goals percentage (0-1 decimal).
off_e_fg_pct_rknumericOff e fg pct rk.
off_to_pctnumericOff to percentage (0-1 decimal).
off_to_pct_rknumericOff to pct rk.
off_or_pctnumericOff or percentage (0-1 decimal).
off_or_pct_rknumericOff or pct rk.
off_ft_ratenumericOff ft rate.
off_ft_rate_rknumericOff ft rate rk.
adj_dnumericAdj d.
adj_d_rknumericAdj d rk.
def_e_fg_pctnumericDef e field goals percentage (0-1 decimal).
def_e_fg_pct_rknumericDef e fg pct rk.
def_to_pctnumericDef to percentage (0-1 decimal).
def_to_pct_rknumericDef to pct rk.
def_or_pctnumericDef or percentage (0-1 decimal).
def_or_pct_rknumericDef or pct rk.
def_ft_ratenumericDef ft rate.
def_ft_rate_rknumericDef ft rate rk.
ncaa_seednumericNcaa seed.
yearnumeric4-digit year.

Examples

# \donttest{
try(kp_fourfactors(min_year = 2020, max_year = 2021))
#>  2026-08-06 04:00:51.985187: Invalid arguments or no four factors data for 2020 - 2021 available!
#>  Args: min_year = 2020, max_year = 2021
#>  Error: HTTP 403 Forbidden.
#> NULL
# }