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 3.0.0.9000 ──
#> ℹ Data updated: 2026-10-12 13:10:31 UTC
#> # A tibble: 200 × 89
#>    player_id      display_name     team  team_abbreviation field_goal_percentage
#>    <chr>          <chr>            <chr> <chr>             <chr>                
#>  1 ncaaf.p.64742  Trey Sanders     TCU   TCU               NA                   
#>  2 ncaaf.p.176026 Alexander Diggs  Kenn… KENN              NA                   
#>  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 Johnson 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                   
#> # ℹ 190 more rows
#> # ℹ 84 more variables: field_goals_0_to_19 <chr>, field_goals_made_40_49 <chr>,
#> #   games_offense <chr>, rushing_touchdowns <chr>, receiving_touchdowns <chr>,
#> #   field_goal_attempts_0_19 <chr>, field_goals_made <chr>,
#> #   field_goals_made_50_plus <chr>, rushing_attempts_per_game <chr>,
#> #   punt_returns <chr>, games_receiving <chr>, passes_defended <chr>,
#> #   field_goal_attempts_30_39 <chr>, games_rushing <chr>, …
# }