Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -176,7 +176,7 @@ calculate_timstuff <- function(game) {
|
|
| 176 |
ishandL = ifelse(phand == "L",1,0))
|
| 177 |
# game <- calculate_primary(game)
|
| 178 |
|
| 179 |
-
feature_vars <- c("ishandL","start_speed", "IVB", "HB", "EAA", "x0", "z0", "spin_rate","SADiff","primvelodiff","primivbdiff","
|
| 180 |
complete_rows <- complete.cases(game[, feature_vars])
|
| 181 |
game_complete <- game[complete_rows, ]
|
| 182 |
game_na <- game[!complete_rows,]
|
|
|
|
| 176 |
ishandL = ifelse(phand == "L",1,0))
|
| 177 |
# game <- calculate_primary(game)
|
| 178 |
|
| 179 |
+
feature_vars <- c("ishandL","start_speed", "IVB", "HB", "EAA", "x0", "z0", "spin_rate","SADiff","primvelodiff","primivbdiff","primhbdiff")
|
| 180 |
complete_rows <- complete.cases(game[, feature_vars])
|
| 181 |
game_complete <- game[complete_rows, ]
|
| 182 |
game_na <- game[!complete_rows,]
|