-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcfbd_team_matchup.Rd
50 lines (43 loc) · 1.64 KB
/
cfbd_team_matchup.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cfbd_teams.R
\name{cfbd_team_matchup}
\alias{cfbd_team_matchup}
\title{\strong{Get matchup history between two teams.}}
\usage{
cfbd_team_matchup(team1, team2, min_year = NULL, max_year = NULL)
}
\arguments{
\item{team1}{(\emph{String} required): D-I Team 1}
\item{team2}{(\emph{String} required): D-I Team 2}
\item{min_year}{(\emph{Integer} optional): Minimum of year range, 4 digit format (\emph{YYYY})}
\item{max_year}{(\emph{Integer} optional): Maximum of year range, 4 digit format (\emph{YYYY})}
}
\value{
\link{cfbd_team_matchup} - A data frame with 11 variables:
\describe{
\item{\code{season}: integer.}{Season the game took place.}
\item{\code{week}: integer.}{Game week of the season.}
\item{\code{season_type}: character.}{Season type of the game.}
\item{\code{date}: character.}{Game date.}
\item{\code{neutral_site}: logical.}{TRUE/FALSE flag for if the game took place at a neutral site.}
\item{\code{venue}: character.}{Stadium name.}
\item{\code{home_team}: character.}{Home team of the game.}
\item{\code{home_score}: integer.}{Home score in the game.}
\item{\code{away_team}: character.}{Away team of the game.}
\item{\code{away_score}: integer.}{Away score in the game.}
\item{\code{winner}: character.}{Winner of the matchup.}
}
}
\description{
\strong{Get matchup history between two teams.}
}
\examples{
\donttest{
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))
}
}
\keyword{Matchup}
\keyword{Team}