Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkailechen committed May 26, 2023
1 parent 655bca2 commit 7307708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ukhls_clean_post_process_benefits.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ ukhls_post_clean_benefit <- function(data = NULL) {
data[(b_income_support != "receipt" & b_ES_Allowance != "receipt" & b_incap_ben != "receipt" & b_sev_disab_allowance != "receipt") & b_UniCred == "receipt" & l_econ_stat_3cat != "inactive", econ_inactive_benefits := "non_receipt"]
data[is.na(b_income_support) & is.na(b_ES_Allowance) & is.na(b_incap_ben) & is.na(b_sev_disab_allowance) & is.na(b_UniCred), econ_inactive_benefits := NA]

return(data)
}

0 comments on commit 7307708

Please sign in to comment.