Skip to contents

Get NCAA Baseball Rosters

Usage

ncaa_roster(team_id = NULL, year, ...)

Arguments

team_id

NCAA id for a school

year

The year of interest

...

Additional arguments passed to an underlying function like httr.

Value

A data frame containing roster information, including IDs and urls for each player (if available)

col_nametypes
player_namecharacter
classcharacter
player_idcharacter
seasonnumeric
numbercharacter
positioncharacter
player_urlcharacter
team_namecharacter
conferencecharacter
team_idnumeric
divisionnumeric
conference_idnumeric

Examples

# \donttest{
  try(ncaa_roster(team_id = 104, year = 2023))
#> ── NCAA Baseball Roster data from stats.ncaa.org ──── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:57:19 UTC
#> # A tibble: 43 × 15
#>    player_name class player_id season number position player_url team_id
#>    <chr>       <chr> <chr>      <dbl> <chr>  <chr>    <chr>        <dbl>
#>  1 Ager, Matt  So    2679361     2023 34     P        https://s…     104
#>  2 Barnier, L… So    NA          2023 24     P        NA             104
#>  3 Barrett, H… Fr    2827132     2023 36     UT       https://s…     104
#>  4 Benbrook, … Jr    2338005     2023 51     P        https://s…     104
#>  5 Bolt, Jack  Fr    NA          2023 29     P        NA             104
#>  6 Bremner, T… Fr    2827144     2023 37     P        https://s…     104
#>  7 Brethowr, … So    2680961     2023 52     OF       https://s…     104
#>  8 Brown, Jes… So    2679402     2023 3      UT       https://s…     104
#>  9 Callahan, … Jr    2337991     2023 23     P        https://s…     104
#> 10 Camarillo,… Fr    2827130     2023 22     P        https://s…     104
#> # ℹ 33 more rows
#> # ℹ 7 more variables: team_name <chr>, team_url <chr>,
#> #   conference_id <dbl>, conference <chr>, division <dbl>, year <dbl>,
#> #   season_id <dbl>
# }