Major version upgrade
eye 1.0.0
Major version upgrade of eye 0.1.0 (commit c4582dc)
Functions and objects (details)
Visual acuity handling
- introduced new verbs
as_...
andto_...
for class conversion for nice integration into known R grammar (#6) - simple wrapper forva(x, to = ...)
- add arguments "from", "noplus" and "smallstep"
- removed "from_logmar" and "logmarstep"
- VA notation guessing is not done by single element any more, but will be forced choice either by most likely or with argument "from". Any implausible values will be forced to NA.
- weird snellen values (e.g., 20/41) are now also converted to other snellen values (#21).
- New S3 methods introduced to check plausibility of entries by VA class.
- Adding plus/minus entries is now done by actual logmar values rather than via lookup in the VA chart (rewrite of
snellen_steps
function) - new function
va_mixed
for vectors of mixed VA notations (replacing previousva_dissect
) - new function
cleanVA
Smaller fixes
recodeye()
recognises "both/ou/b" for both eyes.- dropunknown unclear codings are converted to NA by default (with warning)
- removed numcode argument (other numeric codes can be passed via "to")
eyes()
accepting both quoted and unquoted arguments (#16)- add stop() when main argument not a data frame
eyes()
now also deals with "both eye cases" (#17)- now also finding eye columns with funny names, e.g. EyeName (#18)
- eyes now returns meaningful result on empty data frames) (#19)
- removed "report" argument
reveal()
does not drop unused group levels (#13)eyestr()
moved eyes_to_str step from eyes() to eyestr()age()
renamed to getage() in order to avoid potential and even likely clashes with the users environment, especially when using age() within the local environment of a data frame (e.g., using with())blink()
is deprecated. message that this function will no longer be maintained, but kept in the package.isNAstring
now also converts "-" string to NA- new exported function:
tidyNA()
cleans NA entries clean_va
returns numeric vector if all entries are numeric- removed functions va_dissect() and which_va_dissect()
Data sets
- Removed data set amd - this will be now part of the dedicated ophthalmic data set package "eyedata"
- removed data set 'va_quali' which was anyways a part of "va_chart"