Overview: The Raptor rating which is updated daily, use play-by-play and player-tracking data to calculate each player’s individual plus-minus measurements and wins above replacement, which accounts for playing time. It is a target for who is the best player in NBA. RAPTOR Rating represents “Robust Algorithm using Player Tracking and On-off Ratings”, a measure of the number of points per 100 possessions that a player contributed to his team, relative to an average NBA player.
Load the dplyr packages
library(dplyr)
theUrl <- "https://projects.fivethirtyeight.com/nba-model/2020/latest_RAPTOR_by_team.csv"
ps <- read.table(file=theUrl, header=TRUE, sep=",", quote = "")
Subset and Columns Rename.
ps1000 <- subset(ps, mp >= 1000)
ps1000 <- ps1000 %>% rename(possessions_play = poss, minutes_play = mp)
head(ps1000)
## player_name player_id season season_type team
## 1 Steven Adams adamsst01 2020 RS OKC
## 2 Bam Adebayo adebaba01 2020 RS MIA
## 3 LaMarcus Aldridge aldrila01 2020 RS SAS
## 6 Jarrett Allen allenja01 2020 RS BRK
## 12 Giannis Antetokounmpo antetgi01 2020 RS MIL
## 15 Carmelo Anthony anthoca01 2020 RS POR
## possessions_play minutes_play raptor_box_offense raptor_box_defense
## 1 2406 1151 1.1285506 0.7524393
## 2 3321 1621 -0.9405483 1.8263404
## 3 2982 1426 -0.2880891 0.7040162
## 6 2661 1253 -1.4359847 3.2803361
## 12 2944 1318 6.4762303 2.4767490
## 15 2239 1073 -2.1435570 -2.9106283
## raptor_box_total raptor_onoff_offense raptor_onoff_defense
## 1 1.8809899 2.085383 1.5065696
## 2 0.8857921 3.457793 1.8997129
## 3 0.4159270 -2.218584 -2.3552601
## 6 1.8443513 4.140594 -0.9505339
## 12 8.9529793 1.526775 4.6485837
## 15 -5.0541853 1.859491 -3.2116664
## raptor_onoff_total raptor_offense raptor_defense raptor_total war_total
## 1 3.591953 1.3866082 0.9625186 2.3491268 2.972540
## 2 5.357506 -0.1157517 1.9276344 1.8118826 3.740407
## 3 -4.573844 -0.7474744 0.1505071 -0.5969672 1.549860
## 6 3.190060 -0.3438453 2.5917363 2.2478910 3.171067
## 12 6.175359 5.6931290 3.0005223 8.6936513 7.847679
## 15 -1.352176 -1.4723170 -3.1107629 -4.5830798 -0.993431
## war_reg_season war_playoffs predator_offense predator_defense
## 1 2.972540 0 0.6733191 1.2212704
## 2 3.740407 0 -0.2639739 1.0670374
## 3 1.549860 0 -0.7989722 0.5691605
## 6 3.171067 0 -0.7671275 2.4351810
## 12 7.847679 0 5.4710796 2.3865930
## 15 -0.993431 0 -0.8736408 -2.6131502
## predator_total pace_impact
## 1 1.8945895 -0.7454087
## 2 0.8030635 -0.8770485
## 3 -0.2298117 -1.0794035
## 6 1.6680535 -0.7661658
## 12 7.8576726 2.0219168
## 15 -3.4867909 -1.0249056