cfbd_team_matchup: *Get matchup history between two teams.*

View source: R/cfbd_teams.R

cfbd_team_matchupR Documentation

Get matchup history between two teams.

Description

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


  try(cfbd_team_matchup("Texas", "Oklahoma"))

  try(cfbd_team_matchup("Texas A&M", "TCU"))

  try(cfbd_team_matchup("Texas A&M", "TCU", min_year = 1975))

  try(cfbd_team_matchup("Florida State", "Florida", min_year = 1975))



cfbfastR documentation built on June 14, 2022, 1:05 a.m.