TimStats commited on
Commit
35735cd
·
verified ·
1 Parent(s): 1c1054d

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -221,7 +221,7 @@ calculate_timstuff <- function(game) {
221
 
222
  rhp <- game_complete
223
 
224
- rhp$TimStuff <- scale_TimStuff(predict(model, as.matrix(cbind(rhp$ishandL,rhp$start_speed, rhp$IVB, rhp$HB, rhp$EAA, rhp$x0, rhp$z0, rhp$spin_rate, rhp$SADiff,rhp$primary_speed,rhp$primary_IVB,rhp$primary_HB))), -0.00249975, 0.007566558)
225
 
226
  game_complete <- rbind(rhp,game_na)
227
  return(game_complete)
 
221
 
222
  rhp <- game_complete
223
 
224
+ rhp$TimStuff <- scale_TimStuff(predict(model, as.matrix(cbind(rhp$ishandL,rhp$start_speed, rhp$IVB, rhp$HB, rhp$EAA, rhp$x0, rhp$z0, rhp$spin_rate, rhp$SADiff,rhp$primary_speed,rhp$primary_IVB,rhp$primary_HB))), -0.002491156, 0.0078211)
225
 
226
  game_complete <- rbind(rhp,game_na)
227
  return(game_complete)