getOnOffStats | R Documentation |
getOnOffStats
returns team statistics on offense and defense
when the specified players were on the court together and when they
were on the bench.
getOnOffStats(pbp, players)
pbp |
A play-by-play data frame |
players |
Character vector of full player names |
A data frame with 4 rows per game and 28 variables:
Starting year of the season
Game code
Players that were on/off the court
Whether players were on the court
Factor indicating whether the stats correspond to offense/defense
Team code.
Whether the team was playing at home or not
2PA
2PM
2P%
3PA
3PM
3P%
FGA
FGM
FG%
FTA
FTM
FT%
ORB
DRB
TOV
AST
STL
Comitted personal fouls
BLK
PTS
Possessions
data(samplepbp) madrid_players <- c("FERNANDEZ, RUDY", "AYON, GUSTAVO") getOnOffStats(pbp = samplepbp, players = madrid_players)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.