Import data Into R

nbaelo <- read.csv("https://projects.fivethirtyeight.com/nba-model/nba_elo.csv")

Triming the data to exclude some empty columns

df1 = subset(nbaelo, select = -c(carm.elo1_pre:raptor_prob2,importance:total_rating) )

Further Trimming the data to show just from the 1990 NBA Season

df4 <- filter(df1, season == "1990")

View New Subset

glimpse(df4)
## Rows: 1,179
## Columns: 15
## $ date      <chr> "1989-11-03", "1989-11-03", "1989-11-03", "1989-11-03", "198~
## $ season    <int> 1990, 1990, 1990, 1990, 1990, 1990, 1990, 1990, 1990, 1990, ~
## $ neutral   <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ~
## $ playoff   <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ~
## $ team1     <chr> "POR", "PHO", "MIA", "LAC", "DET", "DAL", "CHH", "CHI", "SEA~
## $ team2     <chr> "SAC", "GSW", "NJN", "HOU", "NYK", "LAL", "WSB", "CLE", "MIN~
## $ elo1_pre  <dbl> 1476.211, 1618.542, 1297.370, 1335.101, 1717.318, 1437.674, ~
## $ elo2_pre  <dbl> 1425.356, 1481.351, 1353.197, 1513.020, 1537.361, 1633.911, ~
## $ elo_prob1 <dbl> 0.7044109, 0.7966331, 0.5632302, 0.3897082, 0.8336282, 0.364~
## $ elo_prob2 <dbl> 0.2955891, 0.2033669, 0.4367698, 0.6102918, 0.1663718, 0.635~
## $ elo1_post <dbl> 1484.245, 1626.017, 1278.243, 1351.843, 1718.838, 1431.521, ~
## $ elo2_post <dbl> 1417.321, 1473.876, 1372.325, 1496.278, 1535.841, 1640.064, ~
## $ score1    <int> 114, 136, 90, 102, 106, 94, 96, 124, 106, 122, 103, 127, 119~
## $ score2    <int> 96, 106, 110, 88, 103, 102, 116, 119, 94, 113, 126, 114, 99,~
## $ quality   <int> 24, 68, 0, 14, 92, 60, 12, 79, 10, 46, 57, 55, 8, 1, 58, 32,~

Now instead of 73363 Obs of 27 Variables we have 1179 obs of 15 variables