# NOT RUN {
library(eyedata)
eyes(amd2)
## If you code your eyes with different strings,
## e.g., because you are using a different language,
## you can change this either with `set_eye_strings`
set_eye_strings(right = c("droit", "od"), left = c("gauche", "og"))
## restore defaults with
set_eye_strings()
# Examples for the usage of eyestr
eyestr(amd2)
set.seed(1)
ls_dat <-
lapply(c(1, 12, 13),
function(x) data.frame(id = as.character(1:x),
eye = sample(c("r", "l"), x, replace = TRUE)))
lapply(ls_dat, eyestr, english = "small")
lapply(ls_dat, eyestr, english = "all")
lapply(ls_dat, eyestr, english = "all", caps = TRUE)
lapply(ls_dat, eyestr, english = "none")
lapply(ls_dat, eyestr, english = "none")
# }
Run the code above in your browser using DataLab