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:

col_name types
game_id integer
team character
conference character
home_away character
team_points integer
athlete_id integer
athlete_name character
defensive_td numeric
defensive_qb_hur numeric
defensive_pd numeric
defensive_tfl numeric
defensive_sacks numeric
defensive_solo numeric
defensive_tot numeric
fumbles_rec numeric
fumbles_lost numeric
fumbles_fum numeric
punting_long numeric
punting_in_20 numeric
punting_tb numeric
punting_avg numeric
punting_yds numeric
punting_no numeric
kicking_pts numeric
kicking_long numeric
kicking_pct numeric
punt_returns_td numeric
punt_returns_long numeric
punt_returns_avg numeric
punt_returns_yds numeric
punt_returns_no numeric
kick_returns_td numeric
kick_returns_long numeric
kick_returns_avg numeric
kick_returns_yds numeric
kick_returns_no numeric
interceptions_td numeric
interceptions_yds numeric
interceptions_int numeric
receiving_long numeric
receiving_td numeric
receiving_avg numeric
receiving_yds numeric
receiving_rec numeric
rushing_long numeric
rushing_td numeric
rushing_avg numeric
rushing_yds numeric
rushing_car numeric
passing_int numeric
passing_td numeric
passing_avg numeric
passing_yds numeric
passing_completions numeric
passing_attempts numeric
passing_qbr numeric
kicking_xpm numeric
kicking_xpa numeric
kicking_fgm numeric
kicking_fga numeric

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"))


saiemgilani/cfbfastR documentation built on Sept. 14, 2024, 2:39 p.m.