Convert MUAC values to either centimeters or millimeters
Usage
recode_muac(x, .to = c("cm", "mm"))
Examples
## Recode from millimeters to centimeters ----
muac_cm <- recode_muac(
x = anthro.01$muac,
.to = "cm"
)
head(muac_cm)
#> [1] 14.6 12.7 14.2 14.9 14.3 13.2
## Using the `muac_cm` object to recode it back to "mm" ----
muac_mm <- recode_muac(
x = muac_cm,
.to = "mm"
)
tail(muac_mm)
#> [1] 149 149 168 168 152 140