Learn R Programming

baseballr (version 1.3.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, year)

Value

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

col_nametypes
yearnumeric
playerNamecharacter
positioncharacter
batting_ordercharacter
schoolcharacter

Arguments

game_info_url

The unique game info url

year

The year the game was played in

Examples

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

Run the code above in your browser using DataLab