Skip to contents

Output Valid MLB Team Abbreviations

Usage

valid_team_names(remove_league_info = FALSE)

Arguments

remove_league_info

Should "AL", "NL", and "MLB" be removed from the returned vector? Defaults to FALSE.

Value

A vector of type "character".

Examples

# \donttest{
# List valid team abbreviations excluding duplicates
valid_team_names()
#>  [1] "AL"  "ATL" "AZ"  "BAL" "BOS" "CHC" "CIN" "CLE" "COL" "CWS" "DET" "HOU"
#> [13] "KC"  "LAA" "LAD" "MIA" "MIL" "MIN" "MLB" "NL"  "NYM" "NYY" "OAK" "PHI"
#> [25] "PIT" "SD"  "SEA" "SF"  "STL" "TB"  "TEX" "TOR" "WSH"
valid_team_names(TRUE)
#>  [1] "ATL" "AZ"  "BAL" "BOS" "CHC" "CIN" "CLE" "COL" "CWS" "DET" "HOU" "KC" 
#> [13] "LAA" "LAD" "MIA" "MIL" "MIN" "NYM" "NYY" "OAK" "PHI" "PIT" "SD"  "SEA"
#> [25] "SF"  "STL" "TB"  "TEX" "TOR" "WSH"
# }