Skip to content

Commit

Permalink
Duration testing fully working
Browse files Browse the repository at this point in the history
Finished getting count table. It makes no distinction between Tones and BBN.
  • Loading branch information
nohelix committed Feb 2, 2024
1 parent 608adda commit 3dc93a5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions supervisor-summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -470,17 +470,16 @@ Workbook_Writer <- function() {
select(-frequency)
}

# Pre-Hearing loss Duration testing counts
if (task_current == "Duration Testing") {
x = "test"

count_df = rat_runs %>%
tidyr::unnest_wider(assignment) %>%
dplyr::filter(phase == "BBN" & task %in% c("Rxn", "TH") & detail == "Alone") %>%
group_by(task, detail) %>%
summarise(task = unique(task), detail = unique(detail),
dplyr::filter(task != "Training" & pre_HL) %>%
reframe(task = unique(task), detail = unique(detail),
date = tail(date, 1), n = n(),
condition = "baseline",
.groups = "drop")
.by = c(task, detail)) %>%
arrange(desc(date))
}


Expand Down

0 comments on commit 3dc93a5

Please sign in to comment.