-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcfbd_metrics_wp_pregame.Rd
48 lines (45 loc) · 1.55 KB
/
cfbd_metrics_wp_pregame.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cfbd_metrics.R
\name{cfbd_metrics_wp_pregame}
\alias{cfbd_metrics_wp_pregame}
\title{\strong{Get pre-game win probability data from API}}
\usage{
cfbd_metrics_wp_pregame(
year = NULL,
week = NULL,
team = NULL,
season_type = "regular"
)
}
\arguments{
\item{year}{(\emph{Integer} optional): Year, 4 digit format (\emph{YYYY})}
\item{week}{(\emph{Integer} optional): Week - values from 1-15, 1-14 for seasons pre-playoff, i.e. 2013 or earlier}
\item{team}{(\emph{String} optional): D-I Team}
\item{season_type}{(\emph{String} default regular): Select Season Type: regular or postseason}
}
\value{
\code{\link[=cfbd_metrics_wp_pregame]{cfbd_metrics_wp_pregame()}} - A data frame with 9 variables:
\describe{
\item{\code{season}: integer.}{Season of game.}
\item{\code{season_type}: character.}{Season type of game.}
\item{\code{week}: integer.}{Game week of the season.}
\item{\code{game_id}: integer.}{Referencing game id.}
\item{\code{home_team}: character.}{Home team name.}
\item{\code{away_team}: character.}{Away team name.}
\item{\code{spread}: integer.}{Betting line provider spread.}
\item{\code{home_win_prob}: double.}{Home win probability - pre-game prediction.}
\item{\code{away_win_prob}: double.}{Away win probability - pre-game prediction.}
}
}
\description{
\strong{Get pre-game win probability data from API}
}
\examples{
\donttest{
try(cfbd_metrics_wp_pregame(year = 2019, week = 9, team = "Texas A&M"))
}
}
\keyword{Data}
\keyword{Pre-game}
\keyword{Probability}
\keyword{Win}