Retrieve lineups for a given NCAA game via its game_info_url
Source: R/ncaa_lineups.R
ncaa_lineups.Rd
Retrieve lineups for a given NCAA game via its game_info_url
Arguments
- game_info_url
The unique game info url
- ...
Additional arguments passed to an underlying function like httr.
Value
Returns a tibble of each school's starting lineup and starting pitcher
col_name | types |
year | numeric |
player_name | character |
position | character |
slug | character |
batting_order | character |
team_name | character |
sub | numeric |
attendance | character |
game_date | character |
location | character |
player_id | integer |
team_id | numeric |
team_url | character |
conference_id | numeric |
conference | character |
division | numeric |
season_id | numeric |
Examples
# \donttest{
try(ncaa_lineups(game_info_url="https://stats.ncaa.org/contests/2167178/box_score"))
#> ── NCAA Baseball Lineups data from stats.ncaa.org ─── baseballr 1.6.0 ──
#> ℹ Data updated: 2024-04-13 21:57:16 UTC
#> # A tibble: 20 × 17
#> year player_name position slug batting_order team_name sub
#> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl>
#> 1 2022 Marello, Brandon 2B NA 1 Milligan 0
#> 2 2022 Guzman, Anthony RF NA 2 Milligan 0
#> 3 2022 Greene, Justin CF NA 3 Milligan 0
#> 4 2022 Spano, Braden 1B NA 4 Milligan 0
#> 5 2022 Hall, Chancery DH NA 5 Milligan 0
#> 6 2022 Haire, Casey 3B NA 6 Milligan 0
#> 7 2022 Rigsby, Eric LF NA 7 Milligan 0
#> 8 2022 Mathias, Andrew SS NA 8 Milligan 0
#> 9 2022 Combs, John C NA 9 Milligan 0
#> 10 2022 Bembry, Jack P NA SP Milligan 0
#> 11 2022 Jackson, Henry RF /play… 1 Carson-N… 0
#> 12 2022 Ricketts, Gunnar LF /play… 2 Carson-N… 0
#> 13 2022 Daughtry, Killian 1B /play… 3 Carson-N… 0
#> 14 2022 Travis, Harrison DH /play… 4 Carson-N… 0
#> 15 2022 Boze, Zach 3B /play… 5 Carson-N… 0
#> 16 2022 Griffin, Jordan CF /play… 6 Carson-N… 0
#> 17 2022 Parkinson, Matt C /play… 7 Carson-N… 0
#> 18 2022 Carpenter, Andrew 2B /play… 8 Carson-N… 0
#> 19 2022 Genter, Micah SS /play… 9 Carson-N… 0
#> 20 2022 Coles, Matt P /play… SP Carson-N… 0
#> # ℹ 10 more variables: attendance <chr>, game_date <chr>,
#> # location <chr>, player_id <int>, team_id <dbl>, team_url <chr>,
#> # conference_id <dbl>, conference <chr>, division <dbl>,
#> # season_id <dbl>
try(ncaa_lineups(game_info_url="https://stats.ncaa.org/game/index/4587474?org_id=528"))
#> ── NCAA Baseball Lineups data from stats.ncaa.org ─── baseballr 1.6.0 ──
#> ℹ Data updated: 2024-04-13 21:57:17 UTC
#> # A tibble: 20 × 17
#> year player_name position slug batting_order team_name sub
#> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl>
#> 1 2018 Madrigal, Nick 2B /play… 1 Oregon S… 0
#> 2 2018 Grenier, Cadyn SS /play… 2 Oregon S… 0
#> 3 2018 Larnach, Trevor RF /play… 3 Oregon S… 0
#> 4 2018 Rutschman, Adley C /play… 4 Oregon S… 0
#> 5 2018 Gretler, Michael 3B/1B /play… 5 Oregon S… 0
#> 6 2018 Malone, Tyler DH /play… 6 Oregon S… 0
#> 7 2018 Nobach, Kyle LF /play… 7 Oregon S… 0
#> 8 2018 Taylor, Zak 1B /play… 8 Oregon S… 0
#> 9 2018 Jones, Preston CF /play… 9 Oregon S… 0
#> 10 2018 Fehmel, Bryce P /play… SP Oregon S… 0
#> 11 2018 Cole, Eric RF /play… 1 Arkansas 0
#> 12 2018 Martin, Casey 3B /play… 2 Arkansas 0
#> 13 2018 Kjerstad, Heston LF /play… 3 Arkansas 0
#> 14 2018 Bonfield, Luke DH /play… 4 Arkansas 0
#> 15 2018 Fletcher, Dominic CF /play… 5 Arkansas 0
#> 16 2018 Shaddy, Carson 2B /play… 6 Arkansas 0
#> 17 2018 Gates, Jared 1B /play… 7 Arkansas 0
#> 18 2018 Koch, Grant C /play… 8 Arkansas 0
#> 19 2018 Biggers, Jax SS /play… 9 Arkansas 0
#> 20 2018 Murphy, Kacey P /play… SP Arkansas 0
#> # ℹ 10 more variables: attendance <chr>, game_date <chr>,
#> # location <chr>, player_id <int>, team_id <dbl>, team_url <chr>,
#> # conference_id <dbl>, conference <chr>, division <dbl>,
#> # season_id <dbl>
# }