Skip to contents

Flattens the shangrila leagueStatsIndividual response (all stat groups in one call) into one wide tibble with one row per player. NCAAF data is available 2013-present.

Usage

yahoo_cfb_player_season_stats(
  season = most_recent_cfb_season(),
  league_structure = "ncaaf.struct.div.1",
  count = 200,
  qualified = FALSE
)

Arguments

season

(integer): Season year (e.g. 2024). Defaults to most_recent_cfb_season().

league_structure

(character): Division filter. Defaults to "ncaaf.struct.div.1" (FBS).

count

(integer): Max players. Defaults to 200.

qualified

(logical): Restrict to qualified leaders. Defaults to FALSE.

Value

A cfbfastR-tagged tibble with one row per player. Core columns:

  • player_id: character.: Yahoo player id (ncaaf.p.*).

  • display_name: character.: Player name.

  • team: character.: Team display name.

  • team_abbreviation: character.: Team abbreviation.

  • season: integer.: Season echoed back.

Remaining columns are one per statId (e.g. passing_yards, rushing_yards, receptions, ...), value as displayed (character). Column set grows over time.

Examples

# \donttest{
  try(yahoo_cfb_player_season_stats(season = 2024))
#> ── Player season stats from Yahoo Sports (shangrila) ───────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-24 02:09:56 UTC
#> # A tibble: 191 × 88
#>    player_id      display_name    team  team_abbreviation rushing_yards_per_game
#>    <chr>          <chr>           <chr> <chr>             <chr>                 
#>  1 ncaaf.p.64742  Trey Sanders    TCU   TCU               9.2                   
#>  2 ncaaf.p.176026 Alexander Diggs Kenn… KENN              14.5                  
#>  3 ncaaf.p.177536 Carson Kent     Pitt… PITT              NA                    
#>  4 ncaaf.p.218709 Eric Goins      Notr… ND                NA                    
#>  5 ncaaf.p.220824 Rico Watson III Sout… S FLA             NA                    
#>  6 ncaaf.p.263248 Cam McCormick   Miam… MIA               NA                    
#>  7 ncaaf.p.264043 Danarius Johns… Kenn… KENN              NA                    
#>  8 ncaaf.p.270875 Keenan Pili     Tenn… TENN              NA                    
#>  9 ncaaf.p.276361 Spencer Curtis  Hawa… HAW               NA                    
#> 10 ncaaf.p.276368 Logan Lutui     BYU   BYU               NA                    
#> # ℹ 181 more rows
#> # ℹ 83 more variables: interception_return_yards <chr>,
#> #   extra_point_attempts <chr>, longest_rush <chr>,
#> #   longest_kickoff_return <chr>, receptions <chr>, punts <chr>,
#> #   field_goals_20_to_29 <chr>, field_goals_made_30_39 <chr>,
#> #   games_defense <chr>, punt_yards <chr>, punt_return_touchdowns <chr>,
#> #   games_returns <chr>, longest_punt_return <chr>, games_offense <chr>, …
# }