View source: R/load_espn_cfb.R
| load_espn_cfb_adv_specialists | R Documentation |
Loads season-level specialist stats – one row per
kicker/punter/returner with kicking EPA, field-goal profile, and return
aggregates. Published to
the espn_cfb_adv_specialists release tag on the sportsdataverse-data
repo.
load_espn_cfb_adv_specialists(
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 |
| pos_team_id | integer | ESPN team id of the team on offense. Present for every season 2004+. |
| pos_team | character | |
| player_name | character | |
| field_goals | integer | Number of field-goal attempts. |
| field_goals_yards | integer | Sum of the field-goal attempt distances parsed out of the play text; it stays at zero when no distance could be parsed from the narrative. |
| punts | integer | Punts attempted. |
| punts_yards | integer | Total gross punt yardage parsed from the play text for this punter, working out to roughly 42 yards per punt league-wide. |
| kick_returns | integer | |
| kick_returns_yards | integer | Total yards the team gained returning kickoffs. |
| punt_returns | integer | |
| punt_returns_yards | integer | Total punt-return yardage credited to this returner, with fair catches, downed punts, and out-of-bounds punts scored as zero. |
| game_id | integer | |
| season | integer | |
| week | integer | |
Saiem Gilani
try(load_espn_cfb_adv_specialists(2004))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.