R/encode_SymptomaticAtTesting.R

Defines functions decode_SymptomaticAtTesting encode_SymptomaticAtTesting

encode_SymptomaticAtTesting <- function(x) {
  c(FALSE, TRUE)[fmatch(x, c("Asymptomatic at Testing", "Symptomatic at Testing"))]
}

decode_SymptomaticAtTesting <- function(x) {
  c("Asymptomatic at Testing", "Symptomatic at Testing")[x]
}
HughParsonage/dhhs documentation built on Dec. 17, 2021, 11:22 p.m.