Get player statistics by game
cfbd_game_player_stats(
year,
week = NULL,
season_type = "regular",
team = NULL,
conference = NULL,
category = NULL,
game_id = NULL
)(Integer required): Year, 4 digit format(YYYY)
(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff (i.e. 2013 or earlier)
(String default regular): Select Season Type: regular or postseason
(String optional): D-I Team
(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
(String optional): Category filter (e.g defensive) Offense: passing, receiving, rushing Defense: defensive, fumbles, interceptions Special Teams: punting, puntReturns, kicking, kickReturns
(Integer optional): Game ID filter for querying a single game
Can be found using the cfbd_game_info() function
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.
# NOT RUN {
try(cfbd_game_player_stats(year = 2020, week = 15, team = "Alabama"))
try(cfbd_game_player_stats(2013, week = 1, team = "Florida State", category = "passing"))
# }
Run the code above in your browser using DataLab