R/encode_CountryOfBirthCALD.R

Defines functions decode_CountryOfBirthCALD encode_CountryOfBirthCALD

encode_CountryOfBirthCALD <- function(x) {
  uCountryOfBirthCALD <- get_dhhs("uCountryOfBirthCALD")
  fmatch(x, uCountryOfBirthCALD)
}

decode_CountryOfBirthCALD <- function(x) {
  uCountryOfBirthCALD <- get_dhhs("uCountryOfBirthCALD")
  uCountryOfBirthCALD[x]
}
HughParsonage/dhhs documentation built on Dec. 17, 2021, 11:22 p.m.