R/get_team_names.R

Defines functions get_team_names

Documented in get_team_names

#' Get team names
#' @param data tibble obtained from `load_seasons`
#' @return character vector with team names in data
#'
get_team_names <- function(data) {

  data %>%
    dplyr::pull(HomeTeam) %>%
    unique() %>%
    sort()

}
kristian-bak/football documentation built on Oct. 8, 2022, 2:11 p.m.