clean_va: Cleaning up Visual acuity entries

Description Usage Arguments Value See Also

View source: R/va_cleaner.R

Description

VA cleaning:

  1. tidyNA: Replacing empty placeholders (".","", "(any number of empty space)", "NULL", "NA", "N/A" , "-") - any cases - with NA

  2. Simplifying the notation for qualitative VA notation (NPL becomes NLP, PL becomes LP)

  3. Removing non-Snellen character strings

Usage

1
2
3
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()


tjebo/eye documentation built on Jan. 24, 2022, 8:34 p.m.