R/team_colour_palettes.R

Defines functions get_afl_colour_palettes

Documented in get_afl_colour_palettes

#' Returns a table with the colour palettes for all teams
#'
#' \code{get_afl_colour_palettes} returns a data frame containing the AFL team's primary, secondary and tertiary colours as applicable

#' The data for this function is hosted on github.
#'
#' @return a data table containing team long name, team abbreviation, and colours
#'
#' @examples
#' \dontrun{
#' # Gets all data
#' get_afl_colour_palettes()
#' }
#'
get_afl_colour_palettes <- function() {
  return(readRDS(url("http://www.fryziggafl.net/static/team_colours.rda", "rb")))
}

Try the fitzRoy package in your browser

Any scripts or data that you put into this service are public.

fitzRoy documentation built on March 7, 2023, 6:45 p.m.