TimStats commited on
Commit
d04982c
·
verified ·
1 Parent(s): bcffa23

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -1
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) {