forked from sportsdataverse/hoopR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkp_winprob.Rd
88 lines (82 loc) · 2.15 KB
/
kp_winprob.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kp_box_tables.R
\name{kp_winprob}
\alias{kp_winprob}
\title{\strong{Get KenPom Win Probability}}
\usage{
kp_winprob(game_id, year)
}
\arguments{
\item{game_id}{Game id of game to pull}
\item{year}{Year of game to pull}
}
\value{
Returns a named list of tibbles: winprob_dataset, game_data, runs
\strong{winprob_dataset}\tabular{ll}{
col_name \tab types \cr
period \tab integer \cr
wp \tab numeric \cr
time_left \tab numeric \cr
visitor_score \tab integer \cr
home_score \tab integer \cr
visitor_scoring \tab integer \cr
home_scoring \tab integer \cr
possession_team \tab character \cr
possession_number \tab character \cr
game_id \tab numeric \cr
year \tab numeric \cr
}
\strong{game_data}\tabular{ll}{
col_name \tab types \cr
game_id \tab character \cr
year \tab integer \cr
full_date \tab character \cr
date \tab character \cr
game_time \tab character \cr
venue \tab character \cr
city \tab character \cr
team1 \tab character \cr
team1score \tab integer \cr
team1_rk \tab character \cr
team2 \tab character \cr
team2score \tab integer \cr
team2_rk \tab character \cr
dominance_season_rk \tab character \cr
tension_season_rk \tab character \cr
excitement_season_rk \tab character \cr
lead_changes_season_rk \tab character \cr
minimum_wp_season_rk \tab character \cr
dominance_rk \tab character \cr
tension_rk \tab character \cr
excitement_rk \tab character \cr
lead_changes_rk \tab character \cr
minimum_wp_rk \tab character \cr
dominance \tab character \cr
tension \tab character \cr
excitement \tab character \cr
favchg \tab character \cr
min_wp \tab character \cr
}
\strong{runs}\tabular{ll}{
col_name \tab types \cr
start \tab numeric \cr
end \tab numeric \cr
visitor \tab integer \cr
home \tab integer \cr
}
}
\description{
\strong{Get KenPom Win Probability}
}
\examples{
\donttest{
try(kp_winprob(game_id = 1238, year = 2020))
}
}
\seealso{
Other KenPom Boxscore Functions:
\code{\link{kp_box}()}
}
\concept{KenPom Boxscore Functions}
\keyword{Probability}
\keyword{Win}