A list of named character vectors mapping common alternate team abbreviations.
Format
A list of named character vectors, where each element in the list is an array of teams corresponding to a given country (3-letter ISO code). Each character vector has the following form:
- name attribute
The "alternate" name.
- value attribute
The "correct" name.
Details
You can suggest additions to this table by opening an issue in soccerplotR.
Examples
# \donttest{
library(purrr)
available_countries <- names(soccerplotR::team_name_mapping)
available_countries
#> [1] "ENG" "ESP" "FRA" "GER" "INT" "ITA" "USA"
#> [1] "ENG" "ESP" "FRA" "GER" "ITA" "USA"
eng_teams <- soccerplotR::team_name_mapping[["ENG"]]
eng_teams[c("Wolves", "Wolverhampton Wanderers", "WBA", "West Brom")]
#> Wolves Wolverhampton Wanderers WBA
#> "Wolves" "Wolves" "West Brom"
#> West Brom
#> "West Brom"
all_teams <- flatten_chr(soccerplotR::team_name_mapping)
all_teams[c("Tottenham Hotspur", "Tottenham", "AC Milan")]
#> <NA> Tottenham AC Milan
#> NA "Tottenham" "AC Milan"
# }