Skip to content

Commit

Permalink
add L2 to objects for samp rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Geller committed Feb 4, 2025
1 parent 7c329c4 commit e8ec915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _manuscript/L2_VWP_webcam_ET.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ When using the above function, separate dataframes are produced by-participants

```{r}
# Extract by-subject and by-trial sampling rates from the result
subject_sampling_rate <- samp_rate$summary_SR_by_subject # Sampling rate by subject
trial_sampling_rate <- samp_rate$SR_by_trial # Sampling rate by trial
subject_sampling_rate <- samp_rate_L2$summary_SR_by_subject # Sampling rate by subject
trial_sampling_rate <- samp_rate_L2$SR_by_trial # Sampling rate by trial
# Ensure subject and trial are factors for proper merging
trial_sampling_rate$subject <- as.factor(trial_sampling_rate$subject)
Expand All @@ -753,7 +753,7 @@ colnames(subject_sampling_rate)[colnames(subject_sampling_rate) == "summary_SR"]
colnames(trial_sampling_rate)[colnames(trial_sampling_rate) == "SR"] <- "sampling_rate_trial"
# Merge by-subject sampling rate with target data
target_data_with_subject_SR <- trial_data_rt %>%
target_data_with_subject_SR <- trial_data_rt_L2 %>%
left_join(subject_sampling_rate, by = "subject")
# Merge by-trial sampling rate with target data
Expand Down

0 comments on commit e8ec915

Please sign in to comment.