View source: R/load_espn_cfb.R
| load_espn_cfb_drives | R Documentation |
Loads season-level drive summaries – one row per drive with start/end
field position, result, plays, yards, and clock. Published to the
espn_cfb_drives release tag on the sportsdataverse-data repo.
load_espn_cfb_drives(
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 |
| drive_id | character | |
| team_id | integer | |
| result | character | |
| display_result | character | |
| short_display_result | character | |
| description | character | |
| yards | integer | |
| offensive_plays | integer | |
| is_score | logical | |
| start_period | integer | |
| start_yard_line | integer | |
| start_clock | character | |
| start_text | character | |
| end_period | integer | |
| end_yard_line | integer | |
| end_clock | character | |
| time_elapsed | character | |
| n_plays | integer | Number of entries in ESPN's raw plays array for the drive, which is generally at least offensive_plays because it also counts penalties and other non-offensive snaps. |
| game_id | integer | |
| season | integer | |
Saiem Gilani
try(load_espn_cfb_drives(2004))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.