View source: R/load_espn_cfb.R
| load_espn_cfb_schedules | R Documentation |
Loads season-level college football schedules built from the ESPN events
API by the cfbfastR-cfb-data pipeline. One row per game with
date/venue/broadcast metadata, team ids and names, scores, and status
fields. Published to the espn_cfb_schedules release tag on the
sportsdataverse-data repo.
load_espn_cfb_schedules(
seasons = most_recent_cfb_season(),
...,
dbConnection = NULL,
tablename = NULL
)
seasons |
A vector of 4-digit years associated with given college football seasons. Published coverage runs 2004 through the most recent season. Pass |
... |
Additional arguments passed to an underlying function that writes the season data into a database. |
dbConnection |
A |
tablename |
The name of the data table within the database |
Returns a cfbfastR_data tibble.
| col_name | types | description |
| game_id | integer | |
| season | integer | |
| week | integer | |
| season_type | integer | |
| game_date | character | |
| neutral_site | logical | |
| conference_competition | logical | |
| home_id | integer | |
| away_id | integer | |
| home_team | character | |
| away_team | character | |
| home_abbreviation | character | |
| away_abbreviation | character | |
| home_score | character | |
| away_score | character | |
| home_winner | logical | |
| away_winner | logical | |
| venue | character | |
| attendance | character | |
| status | character | |
Saiem Gilani
try(load_espn_cfb_schedules(2004))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.