Scrapes the schedule for a given team from the NCAA. Returns data similar to bigballR but does so more efficiently and quickly.

ncaa_schedule(team_id)

Arguments

team_id

the team ID for a given team

Value

a data frame with the following columns: date, game_id, home_team, home_team_id, away_team, away_team_id, home_score, away_score, is_neutral, details

Examples

# \donttest{
ncaa_schedule('501404') # womens soccer
#> # A tibble: 21 × 11
#>    date       game_id home_team  home_team_id away_team  away_team_id home_score
#>    <chr>      <chr>   <chr>      <chr>        <chr>      <chr>             <int>
#>  1 09/11/2020 4973496 Mercer     501404       Georgia S… 501348                1
#>  2 09/17/2020 5032674 The Citad… 501305       Mercer     501404                1
#>  3 09/24/2020 4974980 Ga. South… 501347       Mercer     501404                0
#>  4 10/09/2020 5032678 Mercer     501404       The Citad… 501305                2
#>  5 10/15/2020 4978879 Georgia S… 501348       Mercer     501404                2
#>  6 10/17/2020 4979044 Mercer     501404       UAB        501102                1
#>  7 02/07/2021 4997302 UAB        501102       Mercer     501404                2
#>  8 02/11/2021 4998568 Mercer     501404       Wesleyan … 502219               13
#>  9 02/21/2021 5004835 Mercer     501404       Kennesaw … 501571                1
#> 10 02/28/2021 5011434 Mercer     501404       Troy       501531                0
#> # … with 11 more rows, and 4 more variables: away_score <int>,
#> #   is_neutral <lgl>, event <chr>, attendance <tibble[,1]>
ncaa_schedule('509092') # baseball
#> # A tibble: 74 × 11
#>    date       game_id home_team   home_team_id away_team away_team_id home_score
#>    <chr>      <chr>   <chr>       <chr>        <chr>     <chr>             <int>
#>  1 02/20/2021 5004843 Mississipp… 509092       Texas     508896                8
#>  2 02/21/2021 5004668 Mississipp… 509092       TCU       508892                2
#>  3 02/22/2021 5006005 Mississipp… 509092       Texas Te… 508894               11
#>  4 02/23/2021 NA      Mississipp… 509092       Jackson … 509055               NA
#>  5 02/24/2021 5006965 Mississipp… 509092       Jackson … 509055                7
#>  6 02/26/2021 5008645 Mississipp… 509092       Tulane    508901                3
#>  7 02/27/2021 5010167 Mississipp… 509092       Tulane    508901                9
#>  8 02/28/2021 5011258 Mississipp… 509092       Tulane    508901                5
#>  9 03/03/2021 5013775 Mississipp… 509092       Southern… 509179                4
#> 10 03/05/2021 5020309 Mississipp… 509092       Kent St.  509061                8
#> # … with 64 more rows, and 4 more variables: away_score <int>,
#> #   is_neutral <lgl>, event <chr>, attendance <tibble[,1]>
ncaa_schedule('509675') # mens tennis
#> # A tibble: 22 × 11
#>    date       game_id home_team   home_team_id away_team away_team_id home_score
#>    <chr>      <lgl>   <chr>       <chr>        <chr>     <chr>             <int>
#>  1 01/15/2021 NA      Mississipp… 516518       Bellarmi… 509675                7
#>  2 01/17/2021 NA      Memphis     516519       Bellarmi… 509675                7
#>  3 01/27/2021 NA      Kentucky    516455       Bellarmi… 509675                7
#>  4 01/29/2021 NA      Bellarmine  509675       Northern… 516521                3
#>  5 01/30/2021 NA      Bellarmine  509675       Southern… 509721                6
#>  6 02/03/2021 NA      Louisville  516520       Bellarmi… 509675                7
#>  7 02/05/2021 NA      Bellarmine  509675       Belmont   516522                1
#>  8 02/12/2021 NA      Bellarmine  509675       Ind.-East NA                    7
#>  9 02/14/2021 NA      Xavier      516524       Bellarmi… 509675                6
#> 10 02/20/2021 NA      Bellarmine  509675       Eastern … 516525                5
#> # … with 12 more rows, and 4 more variables: away_score <int>,
#> #   is_neutral <lgl>, event <chr>, attendance <tibble[,1]>
# }