Skip to content

Commit

Permalink
adds missing section markers
Browse files Browse the repository at this point in the history
  • Loading branch information
abramm01 committed Nov 28, 2024
1 parent f93f746 commit 481fb92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/01_data-preparation.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pds <-
)


### 4 - Save out error summary
### 4 - Save out error summary ----

err <- pds %>%
mutate(health_board = if_else(is.na(health_board),
Expand Down Expand Up @@ -182,7 +182,7 @@ dupes <-
write_file(path = get_mi_data_path("dupe_data", ext = "csv", test_output = test_output))
0 # this zero stops script from running IF write_file is overwriting an existing file, re-run the section without this line and enter 1 in the console, when prompted, to overwrite file.

### 7 - Remove duplicate records ---
### 7 - Remove duplicate records ----
pds %<>%

filter(dupe_keep == 1) %>%
Expand All @@ -195,7 +195,7 @@ pds %<>%
select(-contains("dupe"))


### 8 - Save data ---
### 8 - Save data ----

pds %>%
write_file(path = get_mi_data_path("clean_data", ext = "rds", test_output = test_output))
Expand Down

0 comments on commit 481fb92

Please sign in to comment.