cfb_game_player_stats: Get results information from games

Description Usage Arguments Value Source Examples

View source: R/cfb_game_player_stats.R

Description

Get results information from games

Usage

1
2
3
4
5
6
7
8
9
cfb_game_player_stats(
  year,
  week = NULL,
  season_type = "regular",
  team = NULL,
  conference = NULL,
  category = NULL,
  game_id = NULL
)

Arguments

year

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

week

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

season_type

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

team

(String optional): D-I Team

conference

(String optional): 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

category

(String optional): Category filter (e.g defensive)
Offense: passing, receiving, rushing
Defense: defensive, fumbles, interceptions
Special Teams: punting, puntReturns, kicking, kickReturns

game_id

(Integer optional): Game ID filter for querying a single game Can be found using the cfbscrapR::cfb_game_info() function

Value

A data frame with 32 variables:

game_id

integer.

team

character.

conference

character.

home_away

character.

points

integer.

category

character.

athlete_id

character.

name

character.

c_att

character.

yds

double.

avg

double.

td

double.

int

double.

qbr

double.

car

double.

long

double.

rec

double.

no

double.

fg

character.

pct

double.

xp

character.

pts

double.

tb

double.

in_20

double.

fum

double.

lost

double.

tot

double.

solo

double.

sacks

double.

tfl

double.

pd

double.

qb_hur

double.

Source

https://api.collegefootballdata.com/games/players

Examples

1
2
3
cfb_game_player_stats(2018, week = 15, conference = 'Ind')

cfb_game_player_stats(2013, week=1, team = "Florida State", category = 'passing')

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