Learn R Programming

baseballr (version 1.5.0)

ncaa_lineups: 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, ...)

Value

Returns a tibble of each school's starting lineup and starting pitcher

col_nametypes
yearnumeric
player_namecharacter
positioncharacter
slugcharacter
batting_ordercharacter
team_namecharacter
subnumeric
attendancecharacter
game_datecharacter
locationcharacter
player_idinteger
team_idnumeric
team_urlcharacter
conference_idnumeric
conferencecharacter
divisionnumeric
season_idnumeric

Arguments

game_info_url

The unique game info url

...

Additional arguments passed to an underlying function like httr.

Examples

Run this code
# \donttest{
  try(ncaa_lineups(game_info_url="https://stats.ncaa.org/contests/2167178/box_score"))
  try(ncaa_lineups(game_info_url="https://stats.ncaa.org/game/index/4587474?org_id=528"))
# }

Run the code above in your browser using DataLab