cfbd_game_player_stats: *Get player statistics by game*

View source: R/cfbd_games.R

cfbd_game_player_statsR Documentation

Get player statistics by game

Description

Get player statistics by game

Usage

cfbd_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 cfbd_game_info() function

Value

cfbd_game_player_stats() - A data frame with 32 variables:

game_id: integer.

Referencing game id.

team: character.

Team name.

conference: character.

Conference of the team.

home_away: character.

Flag for if the team was the home or away team.

points: integer.

Team points.

category: character.

Statistic category.

athlete_id: character.

Athlete referencing id.

name: character.

Player name.

c_att: character.

Completions - Pass attempts.

yds: double.

Statistic yardage.

avg: double.

Average per statistic.

td: double.

Touchdowns scored.

int: double.

Interceptions thrown.

qbr: double.

Quarterback rating.

car: double.

Number of rushing carries.

long: double.

Longest carry/reception of the game.

rec: double.

Number of pass receptions.

no: double.

Player number.

fg: character.

Field goal attempts in the game.

pct: double.

Field goal percentage in the game.

xp: character.

Extra points kicked in the game.

pts: double.

Total kicking points in the game.

tb: double.

Touchbacks (for kicking) in the game.

in_20: double.

Punts inside the 20 yardline in the game.

fum: double.

Player fumbles in the game.

lost: double.

Player fumbles lost in the game.

tot: double.

Total tackles in the game.

solo: double.

Solo tackles in the game.

sacks: double.

Total sacks in the game.

tfl: double.

Total tackles for loss in the game.

pd: double.

Total passes defensed in the game.

qb_hur: double.

Total quarterback hurries in the game.

Examples


  try(cfbd_game_player_stats(year = 2020, week = 15, team = "Alabama"))

  try(cfbd_game_player_stats(2013, week = 1, team = "Florida State", category = "passing"))


cfbfastR documentation built on June 14, 2022, 1:05 a.m.