Skip to content

Commit

Permalink
Style code
Browse files Browse the repository at this point in the history
  • Loading branch information
lizihao-anu authored and github-actions[bot] committed Oct 28, 2024
1 parent 387fe86 commit 1b9991a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions R/process_extract_ae.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,20 +220,24 @@ process_extract_ae <- function(data, year, write_to_disk = TRUE) {
ae_cup_clean <- ae_cup_file %>%
# Remove any duplicates
dplyr::distinct(.data$record_keydate1,
.data$keytime1,
.data$record_keydate2,
.data$keytime2,
.data$case_ref_number,
.keep_all = TRUE)
.data$keytime1,
.data$record_keydate2,
.data$keytime2,
.data$case_ref_number,
.keep_all = TRUE
)


# Join data--------------------------------------------

matched_ae_data <- outfile %>%
dplyr::left_join(ae_cup_clean,
by = c("record_keydate1", "keytime1",
"record_keydate2", "keytime2",
"case_ref_number")) %>%
by = c(
"record_keydate1", "keytime1",
"record_keydate2", "keytime2",
"case_ref_number"
)
) %>%
dplyr::arrange(
.data$chi,
.data$record_keydate1,
Expand Down

0 comments on commit 1b9991a

Please sign in to comment.