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-09-19 04:15:53 UTC
#> # A tibble: 200 × 89
#>    player_id display_name team  team_abbreviation games_offense passing_attempts
#>    <chr>     <chr>        <chr> <chr>             <chr>         <chr>           
#>  1 ncaaf.p.… Trey Sanders TCU   TCU               5             NA              
#>  2 ncaaf.p.… Alexander D… Kenn… KENN              2             NA              
#>  3 ncaaf.p.… Carson Kent  Pitt… PITT              10            NA              
#>  4 ncaaf.p.… Eric Goins   Notr… ND                NA            NA              
#>  5 ncaaf.p.… Rico Watson… Sout… S FLA             1             NA              
#>  6 ncaaf.p.… Cam McCormi… Miam… MIA               5             NA              
#>  7 ncaaf.p.… Danarius Jo… Kenn… KENN              NA            NA              
#>  8 ncaaf.p.… Keenan Pili  Tenn… TENN              NA            NA              
#>  9 ncaaf.p.… Spencer Cur… Hawa… HAW               10            NA              
#> 10 ncaaf.p.… Logan Lutui  BYU   BYU               1             NA              
#> # ℹ 190 more rows
#> # ℹ 83 more variables: punts <chr>, passing_touchdowns <chr>, sacks <chr>,
#> #   rushing_touchdowns <chr>, interception_return_yards <chr>,
#> #   passing_completions <chr>, games_receiving <chr>,
#> #   passing_yards_per_game <chr>, games_defense <chr>,
#> #   extra_point_attempts <chr>, sacks_yards <chr>, punt_yards <chr>,
#> #   receiving_yards <chr>, games_passing <chr>, games_kicking <chr>, …
# }