#' Get team names
#' @param data tibble with historical bets (see `read_data`) having columns HomeTeam and AwayTeam (see map_game_to_*)
#'
get_team_names <- function(data) {
c(data %>% dplyr::pull(HomeTeam),
data %>% dplyr::pull(AwayTeam)) %>%
na.omit() %>%
unique() %>%
sort()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.