VA cleaning:
isNAstring():
Replacing empty placeholders (".","", "(any number of empty space)",
"NULL", "NA", "N/A" ) - any cases - with NA
convert_NLP() Simplifying the notation for qualitative VA notation
(NPL becomes NLP, PL becomes LP)
Removing non-Snellen character strings
clean_va(x, quali = c("nlp", "lp", "hm", "cf"))convert_NLP(x, replace_PL = c(pl = "lp", npl = "nlp"), tolower = TRUE)
isNAstring(
x,
full = c("\\.+", "", "\\s+", "n/a", "na", "null"),
tolower = TRUE
)
Vector with VA entries
strings for qualitative visual acuity entries
named vector how to rename qualitative VA
if TRUE, x will be converted to lower first
vector of full strings to be replaced by NA
character vector
Other VA cleaner:
va()
Other VA cleaner:
va()