Replace n.a. (not available) and n.b. (not determined) from lab data with NA
Source:R/read_lab_bwb.R
replace_nanb_with_na.Rd
Replace n.a. (not available) and n.b. (not determined) from lab data with NA
Examples
string <- c("19.2", "n.b.", "n. b.", "n. b.", "n.a.", "n. a.", "n. a.")
replace_nanb_with_na(string)
#> [1] "19.2" NA NA NA NA NA NA