TimStats commited on
Commit
8b78a12
·
verified ·
1 Parent(s): 90e9155

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -259,7 +259,7 @@ calculate_timstuff <- function(game) {
259
 
260
  rhp <- game_complete
261
 
262
- 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))), -0.002549184, 0.006202895)
263
 
264
  game_complete <- rbind(rhp,game_na)
265
  return(game_complete)
 
259
 
260
  rhp <- game_complete
261
 
262
+ 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))), -0.002620635, 0.006021368)
263
 
264
  game_complete <- rbind(rhp,game_na)
265
  return(game_complete)