Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -198,7 +198,10 @@ calculate_primary <- function(data){
|
|
| 198 |
primary_IVB = avg_IVB[is_highest_occurrence == 1][1],
|
| 199 |
primary_HB = avg_HB[is_highest_occurrence == 1][1]
|
| 200 |
) %>%
|
| 201 |
-
ungroup()
|
|
|
|
|
|
|
|
|
|
| 202 |
}
|
| 203 |
|
| 204 |
calculate_timstuff <- function(game) {
|
|
|
|
| 198 |
primary_IVB = avg_IVB[is_highest_occurrence == 1][1],
|
| 199 |
primary_HB = avg_HB[is_highest_occurrence == 1][1]
|
| 200 |
) %>%
|
| 201 |
+
ungroup() %>%
|
| 202 |
+
mutate(primvelodiff = primary_speed - start_speed,
|
| 203 |
+
primivbdiff = primary_IVB - IVB,
|
| 204 |
+
primhbdiff = primary_HB - HB)
|
| 205 |
}
|
| 206 |
|
| 207 |
calculate_timstuff <- function(game) {
|