Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -398,6 +398,20 @@ clean_college_data <- function(data, teams = NA){
|
|
| 398 |
T ~ NA
|
| 399 |
)) %>%
|
| 400 |
left_join(rv, by = "event_type")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
|
| 402 |
|
| 403 |
return(data)
|
|
|
|
| 398 |
T ~ NA
|
| 399 |
)) %>%
|
| 400 |
left_join(rv, by = "event_type")
|
| 401 |
+
|
| 402 |
+
data <- data %>%
|
| 403 |
+
dplyr::select(
|
| 404 |
+
-PitchLastMeasuredX, -PitchLastMeasuredY, -PitchLastMeasuredZ,
|
| 405 |
+
-starts_with("PitchTrajectory"),
|
| 406 |
+
-HitSpinAxis,
|
| 407 |
+
-starts_with("HitTrajectory"),
|
| 408 |
+
-PitchReleaseConfidence, -PitchLocationConfidence, -PitchMovementConfidence,
|
| 409 |
+
-HitLaunchConfidence, -HitLandingConfidence,
|
| 410 |
+
-CatcherThrowCatchConfidence, -CatcherThrowReleaseConfidence, -CatcherThrowLocationConfidence,
|
| 411 |
+
-PositionAt110X, -PositionAt110Y, -PositionAt110Z, -BatSpeed, -VerticalAttackAngle,
|
| 412 |
+
-HorizontalAttackAngle
|
| 413 |
+
)
|
| 414 |
+
|
| 415 |
|
| 416 |
|
| 417 |
return(data)
|