Skip to content

Commit

Permalink
Remove regex special character from dataset name variable and add in …
Browse files Browse the repository at this point in the history
…open_dataset() call
  • Loading branch information
pranavanba authored Jul 12, 2024
1 parent 5560e59 commit 3f17035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/process-data/healthkitv2electrocardiogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ecg_stat_summarize <- function(df) {
return(result)
}

dataset <- "healthkitv2electrocardiogram$"
dataset <- "healthkitv2electrocardiogram"

cat(paste0("\n----", glue::glue("Transforming data for {dataset}"), "----\n"))

Expand All @@ -117,7 +117,7 @@ participants_to_exclude <-

# Load the desired subset of this dataset in memory and do some feature engineering for derived variables
df <-
arrow::open_dataset(s3$path(str_subset(dataset_paths, dataset))) %>%
arrow::open_dataset(s3$path(str_subset(dataset_paths, paste0(dataset, "$")))) %>%
select(all_of(c(vars))) %>%
dplyr::filter(!(ParticipantIdentifier %in% participants_to_exclude)) %>%
filter(Classification %in% c("SinusRhythm", "AtrialFibrillation")) %>%
Expand Down

0 comments on commit 3f17035

Please sign in to comment.