Description Usage Arguments Value Examples
View source: R/viewing_distance_correction.R
The logMAR scale allows simple conversion of print size between different viewing distances. When the MNREAD test is not run at the standard distance (ie. 40 cm - 16 inches), the angular print size (in logMAR) must be adjusted to compensate for the change in viewing distance. This function allows to correct the print size accordingly to the viewing distance used for testing.
1 | logMARcorrect(data, print_size, viewing_distance)
|
data |
The name of your dataframe |
print_size |
The variable that contains print size values (print size uncorrected for viewing distance) |
viewing_distance |
The variable that contains the viewing distance value used for testing |
The function returns the original dataframe with an added variable called "correct_ps" that contains corrected print size values (in logMAR).
1 2 3 4 5 6 7 8 | # inspect the strucutre of the dataframe
head(data_low_vision, 10)
# run the correction
data_low_vision_new <- logMARcorrect(data_low_vision, ps, vd)
# inspect the structure of the newly created dataframe
head(data_low_vision_new, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.