ncaa_lineups: *Retrieve lineups for a given NCAA game via its...

View source: R/ncaa_lineups.R

ncaa_lineupsR Documentation

Retrieve lineups for a given NCAA game via its game_info_url

Description

Retrieve lineups for a given NCAA game via its game_info_url

Usage

ncaa_lineups(game_info_url = NULL, ...)

Arguments

game_info_url

The unique game info url

...

Additional arguments passed to an underlying function like httr.

Details

Live usage (reads stats.ncaa.org, which is behind Akamai bot protection and needs the optional chromote + Google Chrome browser fallback, so it is shown here rather than as a runnable example):

ncaa_lineups(game_info_url = "https://stats.ncaa.org/contests/2167178/box_score")
ncaa_lineups(game_info_url = "https://stats.ncaa.org/game/index/4587474?org_id=528")

Value

Returns a tibble of each team's batting lineup (one row per batter, in batting order) parsed from the game's individual_stats box scores.

col_name types description
player_name character Player name.
position character Fielding position (the box score "P" column).
batting_order integer Spot in the batting order (box-score row order).
team_name character Team name (from the box-score totals row).
player_id integer stats.ncaa.org player identifier.
player_url character Full stats.ncaa.org url for the player page.
slug character Relative stats.ncaa.org url for the player page.

baseballr documentation built on Aug. 27, 2026, 1:07 a.m.