Description Usage Arguments Details Value See Also Examples
Pivot eye-related variables to two columns
1 |
x |
data frame |
cols |
columns which should be made "wide". Tidyselection supported |
eye |
eye column (default looking for "eye" or "eyes", all cases) |
Basically the opposite of myop()
- a slightly intelligent
wrapper around tidyr::pivot_longer()
and tidyr::pivot_wider()
Will find the eye column, unify the codes for the eyes (all to "r" and "l")
and pivot the columns wide, that have been specified in "cols".
Good names and tidy data always help!
For more information about shaping data and good names, see vignette("eye")
,
or ?blink
or ?myop
A tibble, see also tibble::tibble
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.