Skip to content

Commit

Permalink
add is_hit column related to #25
Browse files Browse the repository at this point in the history
  • Loading branch information
aridyckovsky committed May 11, 2021
1 parent 87f2c4b commit 1522135
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 891 deletions.
3 changes: 2 additions & 1 deletion R/behavioral_data_preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ get_all_hits_with_reaction_times <- function(participants, combined_df) {

signals %>% mutate(
hit_time = get_hit_times(signals$signal_time, responses$resp_time),
reaction_time = hit_time - signal_time
reaction_time = hit_time - signal_time,
is_hit = as.integer(!is.na(hit_time))
)
})
}
Loading

0 comments on commit 1522135

Please sign in to comment.