Skip to content

Commit

Permalink
Fix: dplyr 1.1.0 warnings
Browse files Browse the repository at this point in the history
Addresses part of #48
  • Loading branch information
nohelix committed Jan 26, 2024
1 parent 084fe0d commit 839c758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions supervisor-summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ Workbook_Writer <- function() {
# take the average Rxn from the 55 and 65 and only keep dates that aren't already in df_Temp
df_Rxn = r %>%
dplyr::filter(task != "TH" & `Dur (ms)` == min_duration & `Inten (dB)` %in% c(55,65)) %>% # not equal TH
reframe(Rxn = mean(Rxn), `Inten (dB)` = mean(`Inten (dB)`), across(),
mutate(Rxn = mean(Rxn), `Inten (dB)` = mean(`Inten (dB)`),
.by = date) %>%
distinct() %>%
distinct() %>% # remove duplicates b/c of multiple lines
filter(! date %in% df_Temp$date) %>%
rbind(df_Temp)

Expand Down

0 comments on commit 839c758

Please sign in to comment.