Skip to contents

Get matchup history between two teams.

Usage

cfbd_team_matchup(team1, team2, min_year = NULL, max_year = NULL)

Arguments

team1

(String required): D-I Team 1

team2

(String required): D-I Team 2

min_year

(Integer optional): Minimum of year range, 4 digit format (YYYY)

max_year

(Integer optional): Maximum of year range, 4 digit format (YYYY)

Value

cfbd_team_matchup - A data frame with 11 variables:

season: integer.

Season the game took place.

week: integer.

Game week of the season.

season_type: character.

Season type of the game.

date: character.

Game date.

neutral_site: logical.

TRUE/FALSE flag for if the game took place at a neutral site.

venue: character.

Stadium name.

home_team: character.

Home team of the game.

home_score: integer.

Home score in the game.

away_team: character.

Away team of the game.

away_score: integer.

Away score in the game.

winner: character.

Winner of the matchup.

Examples

# \donttest{
  try(cfbd_team_matchup("Texas", "Oklahoma"))
#> 2022-09-23 03:23:52:Invalid arguments or no team matchup data available!
#> data frame with 0 columns and 0 rows

  try(cfbd_team_matchup("Texas A&M", "TCU"))
#> 2022-09-23 03:23:52:Invalid arguments or no team matchup data available!
#> data frame with 0 columns and 0 rows

  try(cfbd_team_matchup("Texas A&M", "TCU", min_year = 1975))
#> 2022-09-23 03:23:52:Invalid arguments or no team matchup data available!
#> data frame with 0 columns and 0 rows

  try(cfbd_team_matchup("Florida State", "Florida", min_year = 1975))
#> 2022-09-23 03:23:52:Invalid arguments or no team matchup data available!
#> data frame with 0 columns and 0 rows
# }