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
# \donttest{
try(cfbd_game_player_stats(year = 2020, week = 15, team = "Alabama"))
#> ── Game player stats data from CollegeFootballData.com ─────── cfbfastR 1.9.5 ──
#> ℹ Data updated: 2024-09-10 01:23:07 UTC
#> # A tibble: 48 × 60
#> game_id team conference home_away team_points athlete_id athlete_name
#> <int> <chr> <chr> <chr> <int> <int> <chr>
#> 1 401267164 Alabama SEC away 52 4241478 DeVonta Smith
#> 2 401267164 Alabama SEC away 52 4685723 Roydell Willia…
#> 3 401267164 Alabama SEC away 52 4567140 DJ Dale
#> 4 401267164 Alabama SEC away 52 4567123 Byron Young
#> 5 401267164 Alabama SEC away 52 4372025 Jaylen Moody
#> 6 401267164 Alabama SEC away 52 4261098 Charlie Scott
#> 7 401267164 Alabama SEC away 52 4567104 Will Reichard
#> 8 401267164 Alabama SEC away 52 4241474 Brian Robinson…
#> 9 401267164 Alabama SEC away 52 4692025 Brian Branch
#> 10 401267164 Alabama SEC away 52 4430823 Thaiu Jones-Be…
#> # ℹ 38 more rows
#> # ℹ 53 more variables: defensive_td <dbl>, defensive_qb_hur <dbl>,
#> # defensive_pd <dbl>, defensive_tfl <dbl>, defensive_sacks <dbl>,
#> # defensive_solo <dbl>, defensive_tot <dbl>, fumbles_rec <dbl>,
#> # fumbles_lost <dbl>, fumbles_fum <dbl>, punting_long <dbl>,
#> # punting_in_20 <dbl>, punting_tb <dbl>, punting_avg <dbl>,
#> # punting_yds <dbl>, punting_no <dbl>, kicking_pts <dbl>, …
try(cfbd_game_player_stats(2013, week = 1, team = "Florida State", category = "passing"))
#> ── Game player stats data from CollegeFootballData.com ─────── cfbfastR 1.9.5 ──
#> ℹ Data updated: 2024-09-10 01:23:09 UTC
#> # A tibble: 3 × 60
#> game_id team conference home_away team_points athlete_id athlete_name
#> <int> <chr> <chr> <chr> <int> <int> <chr>
#> 1 332450221 Florida St… ACC away 41 530308 Jameis Wins…
#> 2 332450221 Florida St… ACC away 41 514124 Jake Coker
#> 3 332450221 Pittsburgh ACC home 13 514116 Tom Savage
#> # ℹ 53 more variables: defensive_td <dbl>, defensive_qb_hur <dbl>,
#> # defensive_pd <dbl>, defensive_tfl <dbl>, defensive_sacks <dbl>,
#> # defensive_solo <dbl>, defensive_tot <dbl>, fumbles_rec <dbl>,
#> # fumbles_lost <dbl>, fumbles_fum <dbl>, punting_long <dbl>,
#> # punting_in_20 <dbl>, punting_tb <dbl>, punting_avg <dbl>,
#> # punting_yds <dbl>, punting_no <dbl>, kicking_pts <dbl>, kicking_long <dbl>,
#> # kicking_pct <dbl>, punt_returns_td <dbl>, punt_returns_long <dbl>, …
# }