cfb_drives: Get results information from games

Description Usage Arguments Value Source Examples

View source: R/cfb_drives.R

Description

Get results information from games

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
cfb_drives(
  year,
  season_type = "regular",
  week = NULL,
  team = NULL,
  offense_team = NULL,
  defense_team = NULL,
  conference = NULL,
  offense_conference = NULL,
  defense_conference = NULL
)

Arguments

year

(Integer required): Year, 4 digit format (YYYY)

season_type

(String default regular): Select Season Type: regular, postseason, or both

week

(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff, i.e. 2013 or earlier

team

(String optional): D-I Team

offense_team

(String optional): Offense D-I Team

defense_team

(String optional): Defense D-I Team

conference

(String optional): DI Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

offense_conference

(String optional): Offense DI Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

defense_conference

(String optional): Defense DI Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

Value

A data frame with 23 variables as follows:

offense

character. Drive offense.

offense_conference

character. Drive offense's conference.

defense

character. Drive defense.

defense_conference

character. Drive defense's conference.

game_id

integer. Unique game identifier - 'game_id'.

drive_id

character. Unique drive identifier - 'drive_id'.

drive_number

integer. Drive number in game.

scoring

logical. Drive ends in a score.

start_period

integer. Period (or Quarter) in which the drive starts.

start_yardline

integer. Yard line at the drive start.

start_yards_to_goal

integer. Yards-to-Goal at the drive start.

end_period

integer. Period (or Quarter) in which the drive ends.

end_yardline

integer. Yard line at drive end.

end_yards_to_goal

integer. Yards-to-Goal at drive end.

plays

integer. Number of drive plays.

yards

integer. Total drive yards.

drive_result

character. Result of the drive description.

time_minutes_start

integer. Minutes at drive start.

time_seconds_start

integer. Seconds at drive start.

time_minutes_end

integer. Minutes at drive end.

time_seconds_end

integer. Seconds at drive end.

time_minutes_elapsed

double. Minutes elapsed during drive.

time_seconds_elapsed

integer. Seconds elapsed during drive.

Source

https://api.collegefootballdata.com/drives

Examples

1
2
3
cfb_drives(2018, week = 1, team = "TCU")

cfb_drives(2018, team = "Texas A&M", defense_conference = 'SEC')

meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.