clean_va {eye} | R Documentation |
Cleaning up Visual acuity entries
Description
VA cleaning:
-
tidyNA: Replacing empty placeholders (".","", "(any number of empty space)", "NULL", "NA", "N/A" , "-") - any cases - with NA
Simplifying the notation for qualitative VA notation (NPL becomes NLP, PL becomes LP)
Removing non-Snellen character strings
Usage
clean_va(x, quali = c("nlp", "lp", "hm", "cf"), message = TRUE)
cleanVA(x, quali = c("nlp", "lp", "hm", "cf"), message = TRUE)
Arguments
x |
Vector with VA entries |
quali |
strings for qualitative visual acuity entries |
message |
message for replaced NA values |
Value
character vector
See Also
Other VA cleaner:
va()
[Package eye version 1.2.1 Index]