forked from sportsdataverse/hoopR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathespn_mbb_pbp.Rd
100 lines (98 loc) · 2.82 KB
/
espn_mbb_pbp.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
89
90
91
92
93
94
95
96
97
98
99
100
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/espn_mbb_data.R
\name{espn_mbb_pbp}
\alias{espn_mbb_pbp}
\title{\strong{Get ESPN men's college basketball PBP data}}
\usage{
espn_mbb_pbp(game_id)
}
\arguments{
\item{game_id}{Game ID}
}
\value{
A play-by-play data frame.
\strong{Plays}\tabular{ll}{
col_name \tab types \cr
id \tab character \cr
sequence_number \tab character \cr
text \tab character \cr
away_score \tab integer \cr
home_score \tab integer \cr
scoring_play \tab logical \cr
score_value \tab integer \cr
wallclock \tab character \cr
shooting_play \tab logical \cr
type_id \tab integer \cr
type_text \tab character \cr
period_number \tab integer \cr
period_display_value \tab character \cr
clock_display_value \tab character \cr
team_id \tab integer \cr
coordinate_x_raw \tab numeric \cr
coordinate_y_raw \tab numeric \cr
coordinate_x \tab numeric \cr
coordinate_y \tab numeric \cr
play_id \tab character \cr
athlete_id_1 \tab integer \cr
athlete_id_2 \tab integer \cr
home_team_id \tab integer \cr
home_team_mascot \tab character \cr
home_team_name \tab character \cr
home_team_abbrev \tab character \cr
home_team_logo \tab character \cr
home_team_logo_dark \tab character \cr
home_team_full_name \tab character \cr
home_team_color \tab character \cr
home_team_alternate_color \tab character \cr
home_team_score \tab integer \cr
home_team_winner \tab logical \cr
home_team_record \tab character \cr
away_team_id \tab integer \cr
away_team_mascot \tab character \cr
away_team_name \tab character \cr
away_team_abbrev \tab character \cr
away_team_logo \tab character \cr
away_team_logo_dark \tab character \cr
away_team_full_name \tab character \cr
away_team_color \tab character \cr
away_team_alternate_color \tab character \cr
away_team_score \tab integer \cr
away_team_winner \tab logical \cr
away_team_record \tab character \cr
game_id \tab integer \cr
season \tab integer \cr
season_type \tab integer \cr
game_date \tab Date \cr
game_date_time \tab POSIXct \cr
}
}
\description{
\strong{Get ESPN men's college basketball PBP data}
}
\examples{
\donttest{
try(espn_mbb_pbp(game_id = 401479672))
}
}
\seealso{
Other ESPN MBB Functions:
\code{\link{espn_mbb_betting}()},
\code{\link{espn_mbb_conferences}()},
\code{\link{espn_mbb_game_all}()},
\code{\link{espn_mbb_game_rosters}()},
\code{\link{espn_mbb_player_box}()},
\code{\link{espn_mbb_player_stats}()},
\code{\link{espn_mbb_rankings}()},
\code{\link{espn_mbb_scoreboard}()},
\code{\link{espn_mbb_standings}()},
\code{\link{espn_mbb_team_box}()},
\code{\link{espn_mbb_team_stats}()},
\code{\link{espn_mbb_teams}()},
\code{\link{espn_mbb_wp}()}
}
\author{
Saiem Gilani
}
\concept{ESPN MBB Functions}
\keyword{MBB}
\keyword{PBP}