Skip to contents

Get Schedule and Results for NCAA Baseball Teams

Usage

ncaa_schedule_info(teamid = NULL, year = NULL)

Arguments

teamid

The team's unique NCAA id.

year

The season (i.e. use 2016 for the 2015-2016 season, etc.)

Value

A data frame with the following fields: date, opponent, result, score, innings (if more than regulation), and the url for the game itself.

col_nametypes
datecharacter
opponentcharacter
resultcharacter
scorecharacter
inningscharacter
opponent_slugcharacter
slugcharacter
game_info_urlcharacter

Examples

# \donttest{
  try(ncaa_schedule_info(teamid = 736, year = 2021))
#> ── NCAA Baseball Schedule Info data from stats.ncaa.org ────────────────
#>  Data updated: 2022-04-30 07:17:16 UTC
#> # A tibble: 67 × 8
#>    date  opponent result score innings opponent_slug slug  game_info_url
#>    <chr> <chr>    <chr>  <chr> <chr>   <chr>         <chr> <chr>        
#>  1 02/2… Wright … W      14-1  NA      /teams/508926 /con… https://stat…
#>  2 02/2… Wright … W      1-0   NA      /teams/508926 /con… https://stat…
#>  3 02/2… Western… W      12-1  NA      /teams/508920 /con… https://stat…
#>  4 02/2… Georgia… L      2-4   NA      /teams/509035 /con… https://stat…
#>  5 02/2… Georgia… W      5-4   NA      /teams/509035 /con… https://stat…
#>  6 02/2… Georgia… W      12-2  NA      /teams/509035 /con… https://stat…
#>  7 02/2… Georgia… W      17-6  NA      /teams/509035 /con… https://stat…
#>  8 03/0… UIC      W      15-0  NA      /teams/509049 /con… https://stat…
#>  9 03/0… UIC      W      5-2   NA      /teams/509049 /con… https://stat…
#> 10 03/0… UIC      W      4-2   NA      /teams/509049 /con… https://stat…
#> # … with 57 more rows
# }