R/short_tournament_name.R

Defines functions short_tournament_name

Documented in short_tournament_name

#' Short tournament name
#' @param x character vector with tournamnet names
#' @return character vector with abbreviated tournament names
#' 
short_tournament_name <- function(x) {
  
  x[x == "Premier League"]   <- "PL"
  x[x == "Champions League"] <- "CL"
  
  return(x)
  
}
kristian-bak/betting documentation built on Oct. 24, 2022, 1:35 p.m.