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