Description Usage Arguments Value Examples
Returns a case_when
from dplyr
to replace .s with .r. You can copy the output and put in the script to avoid manual work.
1 | case_when_skeleton(.s, .r, var_name = NULL)
|
.s |
a character vector to be replaced. |
.r |
a character vector to replace with. |
var_name |
Optional. the name of the variable that should be replaced. If NULL or not changed the call of '.s' is used. |
console output with a case_when skeleton
1 2 3 | case_when_skeleton(letters[1:10],
LETTERS[1:10],
var_name = "my_letters")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.