wnba_pbps {wehoop} | R Documentation |
Get WNBA Stats API play-by-play (Multiple Games)
Description
Get WNBA Stats API play-by-play (Multiple Games)
Get WNBA Stats API play-by-play (Multiple Games)
Usage
wnba_pbps(
game_ids = NULL,
on_court = TRUE,
version = "v2",
nest_data = FALSE,
...
)
Arguments
game_ids |
Game IDs |
on_court |
IF TRUE will be added ID of players on court |
version |
Play-by-play version ("v2" available from 2016-17 onwards) |
nest_data |
If TRUE returns nested data by game |
... |
Additional arguments passed to an underlying function like httr. |
Details
y <- c("1022200034", "1022200035" ) wnba_pbps(game_ids = y, version = "v2")
Value
Returns a data frame: PlayByPlay
col_name | types |
game_id | character |
event_num | character |
event_type | character |
event_action_type | character |
period | numeric |
minute_game | numeric |
time_remaining | numeric |
wc_time_string | character |
time_quarter | character |
minute_remaining_quarter | numeric |
seconds_remaining_quarter | numeric |
home_description | character |
neutral_description | character |
visitor_description | character |
score | character |
away_score | numeric |
home_score | numeric |
score_margin | character |
person1type | character |
player1_id | character |
player1_name | character |
player1_team_id | character |
player1_team_city | character |
player1_team_nickname | character |
player1_team_abbreviation | character |
person2type | character |
player2_id | character |
player2_name | character |
player2_team_id | character |
player2_team_city | character |
player2_team_nickname | character |
player2_team_abbreviation | character |
person3type | character |
player3_id | character |
player3_name | character |
player3_team_id | character |
player3_team_city | character |
player3_team_nickname | character |
player3_team_abbreviation | character |
video_available_flag | character |
team_leading | character |
away_player1 | numeric |
away_player2 | numeric |
away_player3 | numeric |
away_player4 | numeric |
away_player5 | numeric |
home_player1 | numeric |
home_player2 | numeric |
home_player3 | numeric |
home_player4 | numeric |
home_player5 | numeric |
Author(s)
Jason Lee
See Also
Other WNBA PBP Functions:
wnba_data_pbp()
,
wnba_live_pbp()
,
wnba_pbp()
[Package wehoop version 2.1.0 Index]