Description Usage Arguments Details Source Examples
I never actually know how to do them, so I google this every time. Perhaps its time to settle this once and for all.
1 |
var |
a numeric variable |
Thanks goes to James Martherus.
https://github.com/jamesmartherus/martherus
1 2 3 4 5 | x1 <- c(1, 2, 3, 4, NA, 5)
reverse_code(x1) #c(5, 4, 3, 2, NA, 1)
x2 <- c(0, 1, 2, NA, 4, 7)
reverse_code(x2) #c(7, 6, 5, NA, 3, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.