case_when_skeleton: case_when_skeleton

Description Usage Arguments Value Examples

View source: R/similiars.R

Description

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.

Usage

1
case_when_skeleton(.s, .r, var_name = NULL)

Arguments

.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.

Value

console output with a case_when skeleton

Examples

1
2
3
case_when_skeleton(letters[1:10],
                   LETTERS[1:10],
                   var_name = "my_letters")

davidsjoberg/similiars documentation built on Jan. 17, 2021, 6:32 p.m.