| ncaa_lineups | R Documentation |
game_info_urlRetrieve lineups for a given NCAA game via its game_info_url
ncaa_lineups(game_info_url = NULL, ...)
game_info_url |
The unique game info url |
... |
Additional arguments passed to an underlying function like httr. |
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")
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.