Skip to contents

Loads team information including colors and logos - useful for plots!

Usage

load_cfb_teams(fbs_only = TRUE)

Arguments

fbs_only

if TRUE, returns only FBS teams, otherwise returns all teams in the dataset

Value

A tibble of team-level image URLs and hex color codes.

See also

cfbd_team_info()

Issues with this data should be filed here: https://github.com/sportsdataverse/cfbfastR-data

Examples

# \donttest{
  try(load_cfb_teams())
#> ── Team information ────────────────────────────────────────── cfbfastR 1.9.3 ──
#>  Data updated: 2022-09-17 20:01:35 UTC
#> # A tibble: 673 × 27
#>    team_id school   mascot abbre…¹ alt_n…² alt_n…³ alt_n…⁴ confe…⁵ class…⁶ color
#>      <int> <chr>    <chr>  <chr>   <chr>   <chr>   <chr>   <chr>   <chr>   <chr>
#>  1    2000 Abilene… Wildc… ACU     NA      ACU     Abil C… Wester… fcs     #4e2…
#>  2    2001 Adams S… Grizz… ADST    NA      ADST    Adams … Rocky … ii      #000…
#>  3    2003 Adrian   Bulld… ADR     NA      ADR     Adrian  Michig… iii     #000…
#>  4    2005 Air For… Falco… AFA     NA      AFA     Air Fo… Mounta… fbs     #004…
#>  5    2006 Akron    Zips   AKR     NA      AKR     Akron   Mid-Am… fbs     #002…
#>  6     333 Alabama  Crims… ALA     NA      ALA     Alabama SEC     fbs     #690…
#>  7    2010 Alabama… Bulld… AAMU    NA      AAMU    Alabam… SWAC    fcs     #790…
#>  8    2011 Alabama… Horne… ALST    NA      ALST    Alabam… SWAC    fcs     #e9a…
#>  9     399 Albany   Great… ALBY    SUNY A… ALBY    Albany  CAA     fcs     #3D2…
#> 10    2013 Albany … Golde… ALB     NA      ALB     Albany… SIAC    ii      #000…
#> # … with 663 more rows, 17 more variables: alt_color <chr>, logo <chr>,
#> #   logo_2 <chr>, venue_id <int>, venue_name <chr>, city <chr>, state <chr>,
#> #   zip <chr>, country_code <chr>, timezone <chr>, latitude <dbl>,
#> #   longitude <dbl>, elevation <chr>, capacity <int>, year_constructed <int>,
#> #   grass <lgl>, dome <lgl>, and abbreviated variable names ¹​abbreviation,
#> #   ²​alt_name1, ³​alt_name2, ⁴​alt_name3, ⁵​conference, ⁶​classification
# }