Skip to content

Commit

Permalink
Update R/create_individual_file.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Moohan authored Aug 9, 2023
1 parent 3ec6b81 commit 215b64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/create_individual_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ join_sc_client <- function(
by = c("sending_location", "social_care_id"),
relationship = "one-to-one"
) %>%
mutate(count_not_known = apply(join_client_demog, 1, function(row) {
dplyr::mutate(count_not_known = apply(join_client_demog, 1, function(row) {
sum(row == "Not Known")
})) %>%
dplyr::arrange(chi, count_not_known) %>%
distinct(chi, .keep_all = TRUE)
dplyr::distinct(chi, .keep_all = TRUE)

# Match on client variables by chi
individual_file <- individual_file %>%
Expand Down

0 comments on commit 215b64e

Please sign in to comment.