Spaces:
Sleeping
Sleeping
Update app.R
Browse files
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))),
|
| 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)
|