-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
056f7a1
commit 542602a
Showing
10 changed files
with
158 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' Alternate Team Abbreviation Mapping | ||
#' | ||
#' A list of named character vectors mapping common alternate team abbreviations. | ||
#' | ||
#' You can suggest additions to this table by | ||
#' [opening an issue in soccerplotR](https://github.com/tonyelhabr/soccerplotR/issues/new). | ||
#' | ||
#' @examples | ||
#' \donttest{ | ||
#' library(purrr) | ||
#' | ||
#' available_countries <- names(soccerplotR::team_name_mapping) | ||
#' available_countries | ||
#' #> [1] "ENG" "ESP" "FRA" "GER" "ITA" "USA" | ||
#' | ||
#' eng_teams <- soccerplotR::team_name_mapping[["ENG"]] | ||
#' eng_teams[c("Wolves", "Wolverhampton Wanderers", "WBA", "West Brom")] | ||
#' | ||
#' all_teams <- flatten_chr(soccerplotR::team_name_mapping) | ||
#' all_teams[c("Tottenham Hotspur", "Tottenham", "AC Milan")] | ||
#' } | ||
#' | ||
#' @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: | ||
#' \describe{ | ||
#' \item{name attribute}{The "alternate" name.} | ||
#' \item{value attribute}{The "correct" name.} | ||
#' } | ||
"team_name_mapping" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.