The abbreviations used in this function are extracted from ESPN
Usage
valid_team_names(league = c("NBA", "WNBA"))
Examples
# List valid NBA team abbreviations
valid_team_names("NBA")
#> [1] "ATL" "BKN" "BOS" "CHA" "CHI" "CLE" "DAL" "DEN" "DET" "GS"
#> [11] "HOU" "IND" "LAC" "LAL" "MEM" "MIA" "MIL" "MIN" "NO" "NY"
#> [21] "OKC" "ORL" "PHI" "PHX" "POR" "SA" "SAC" "TOR" "UTAH" "WSH"
# List valid WNBA team abbreviations
valid_team_names("WNBA")
#> [1] "ATL" "CHI" "CONN" "DAL" "IND" "LA" "LV" "MIN" "NY" "PHX"
#> [11] "SEA" "WSH"