Skip to content

Commit

Permalink
Update preprocess_data.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeMZou committed Dec 12, 2024
1 parent 9c134bb commit 2c3d57a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions analysis/preprocess/preprocess_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ df <- df %>%
mutate(across(all_of(date_cols),
~ floor_date(as.Date(., format="%Y-%m-%d"), unit = "days")),
across(contains('_birth_year'),
~ format(as.Date(., origin = "1970-01-01"), "%Y")),
across(all_of(num_cols), ~ as.numeric(.)),
across(all_of(cat_cols), ~ as.factor(.)),
across(all_of(bin_cols), ~ as.logical(.)))
~ format(as.Date(., origin = "1970-01-01"), "%Y")))

# Overwrite vaccination information for dummy data and vax cohort only ---------

Expand Down

0 comments on commit 2c3d57a

Please sign in to comment.