-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcfbd_metrics.Rd
54 lines (43 loc) · 2.24 KB
/
cfbd_metrics.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
51
52
53
54
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cfbd_metrics.R
\name{cfbd_metrics}
\alias{cfbd_metrics}
\title{\strong{CFBD Metrics Endpoint Overview}}
\description{
\describe{
\item{\code{cfbd_metrics_ppa_games()}:}{ Get team game averages for predicted points added (PPA).}
\item{\code{cfbd_metrics_ppa_players_games()}:}{ Get player game averages for predicted points added (PPA).}
\item{\code{cfbd_metrics_ppa_players_season()}:}{ Get player season averages for predicted points added (PPA).}
\item{\code{cfbd_metrics_ppa_predicted()}:}{ Calculate predicted points using Down and Distance.}
\item{\code{cfbd_metrics_ppa_teams()}:}{ Get team averages for predicted points added (PPA).}
\item{\code{cfbd_metrics_wp_pregame()}:}{ Get pre-game win probability data from CFBD API.}
\item{\code{cfbd_metrics_wp()}:}{ Get win probability chart data from CFBD API.}
}
}
\details{
\subsection{\strong{Get team game averages for predicted points added (PPA)}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{ cfbd_metrics_ppa_games(year = 2019, team = "TCU")
}\if{html}{\out{</div>}}
}
\subsection{\strong{Get player game averages for predicted points added (PPA)}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{ cfbd_metrics_ppa_players_games(year = 2019, week = 3, team = "TCU")
}\if{html}{\out{</div>}}
}
\subsection{\strong{Get player season averages for predicted points added (PPA)}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{ cfbd_metrics_ppa_players_season(year = 2019, team = "TCU")
}\if{html}{\out{</div>}}
}
\subsection{\strong{Get team averages for predicted points added (PPA)}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{ cfbd_metrics_ppa_teams(year = 2019, team = "TCU")
}\if{html}{\out{</div>}}
}
\subsection{\strong{Get pre-game and post-game win probability data from CFBD API}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{ cfbd_metrics_wp_pregame(year = 2019, week = 9, team = "Texas A&M")
cfbd_metrics_wp(game_id = 401012356)
}\if{html}{\out{</div>}}
}
\subsection{\strong{Calculate predicted points using down and distance}}{
\if{html}{\out{<div class="sourceCode r">}}\preformatted{cfbd_metrics_ppa_predicted(down = 1, distance = 10)
}\if{html}{\out{</div>}}
}
}