Skip to contents

Retrieve lineups for a given NCAA game via its game_info_url

Usage

ncaa_lineups(game_info_url, year)

Arguments

game_info_url

The unique game info url

year

The year the game was played in

Value

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

col_nametypes
yearnumeric
playerNamecharacter
positioncharacter
batting_ordercharacter
schoolcharacter

Examples

# \donttest{
  try(ncaa_lineups(game_info_url="https://stats.ncaa.org/game/index/4587474?org_id=528",year=2018))
#> ── NCAA Baseball Lineups data from stats.ncaa.org ─── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:17:02 UTC
#> # A tibble: 20 × 5
#>     year playerName        position batting_order school    
#>    <dbl> <chr>             <chr>    <chr>         <chr>     
#>  1  2018 Madrigal, Nick    2B       1             Oregon St.
#>  2  2018 Grenier, Cadyn    SS       2             Oregon St.
#>  3  2018 Larnach, Trevor   RF       3             Oregon St.
#>  4  2018 Rutschman, Adley  C        4             Oregon St.
#>  5  2018 Gretler, Michael  3B/1B    5             Oregon St.
#>  6  2018 Malone, Tyler     DH       6             Oregon St.
#>  7  2018 Nobach, Kyle      LF       7             Oregon St.
#>  8  2018 Taylor, Zak       1B       8             Oregon St.
#>  9  2018 Jones, Preston    CF       9             Oregon St.
#> 10  2018 Fehmel, Bryce     P        SP            Oregon St.
#> 11  2018 Cole, Eric        RF       1             Arkansas  
#> 12  2018 Martin, Casey     3B       2             Arkansas  
#> 13  2018 Kjerstad, Heston  LF       3             Arkansas  
#> 14  2018 Bonfield, Luke    DH       4             Arkansas  
#> 15  2018 Fletcher, Dominic CF       5             Arkansas  
#> 16  2018 Shaddy, Carson    2B       6             Arkansas  
#> 17  2018 Gates, Jared      1B       7             Arkansas  
#> 18  2018 Koch, Grant       C        8             Arkansas  
#> 19  2018 Biggers, Jax      SS       9             Arkansas  
#> 20  2018 Murphy, Kacey     P        SP            Arkansas  
# }