Skip to content

Commit

Permalink
refactor: kontakter should come first so cpr is first column, plus us…
Browse files Browse the repository at this point in the history
…e inner join
  • Loading branch information
lwjohnst86 committed Jun 25, 2024
1 parent 0d0b963 commit e2fce26
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/joins.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ join_lpr2 <- function(lpr_adm, lpr_diag) {
#' @keywords internal
#'
#' @examples
#' register_data$diagnoser |>
#' join_lpr3(register_data$kontakter)
join_lpr3 <- function(diagnoser, kontakter) {
verify_required_variables(diagnoser, "diagnoser")
#' register_data$kontakter |>
#' join_lpr3(register_data$diagnoser)
join_lpr3 <- function(kontakter, diagnoser) {
verify_required_variables(kontakter, "kontakter")
dplyr::full_join(
verify_required_variables(diagnoser, "diagnoser")

dplyr::inner_join(
column_names_to_lower(kontakter),
column_names_to_lower(diagnoser),
by = "dw_ek_kontakt"
Expand Down

0 comments on commit e2fce26

Please sign in to comment.