Hi,
I would like to use case_match to replace a series of strings with another series of strings in a pairwise manner. For example,
x <- c("A", "B", "B")
x1 <- c("A", "B")
x2 <- c( "Apple", "Banana")
## would work like
case_match(x, x1,x2)
## Instead of
case_match(x, 'A'~'Apple',
'B' ~ 'Banana')