Skip to contents

A utility function for adding current NET rankings and quadrant boundaries to data.

Usage

cbd_add_net_quad(
  df,
  net_team_col = opp,
  net_col = net,
  location_col = location,
  add_net = TRUE
)

Arguments

df

Data frame to alter

net_team_col

A column of team names which should be used to match against current NET rankings

net_col

The name of your NET column (or the name to call the new NET column)

location_col

The name of your game location column

add_net

Should NET rankings first be added to your data? Set to FALSE if you already have NET rankings and reference that column name in net_col. Defaults to TRUE.