Skip to content

Commit

Permalink
Use read_parquet()
Browse files Browse the repository at this point in the history
  • Loading branch information
psychelzh committed Sep 20, 2024
1 parent 1c284f2 commit 793516e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _scripts/analyze_inter_subject.R
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,11 @@ list(
),
tar_target(
whole_erps,
arrow::open_dataset(file_cca_y) |>
filter(!is.nan(y)) |>
arrow::read_parquet(file_cca_y) |>
summarise(
y_avg = mean(y),
y_avg = mean(y, na.rm = TRUE),
.by = c(subj_id, cca_id, time_id)
) |>
collect()
)
),
tarchetypes::tar_file_read(
smc,
Expand Down

0 comments on commit 793516e

Please sign in to comment.