You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to happen only with mixed vectors of logmar / ETDRS. Current workaround use sapply
library(eye)
x<- c(0.2, 0.1, 75)
y<- c("20/60", "6/5", 75)
va_mixed(x, to="logmar")
#> [1] 0.2 0.1 NA
va_mixed(y, to="logmar")
#> [1] 0.5 -0.1 0.2
to_logmar(x, from="etdrs")
#> This doesn't look like etdrs. Could be logmar, snellendec. Picking logmar#> 1x NA introduced for: 75#> [1] 0.2 0.1 NA# workaround for the time being:
sapply(x, to_logmar)
#> From logmar. Could be logmar, snellendec#> From logmar. Could be logmar, snellendec#> From etdrs#> [1] 0.2 0.1 0.2
Seems to happen only with mixed vectors of logmar / ETDRS. Current workaround use
sapply
Created on 2021-03-08 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: