DavisVaughan · GitHub

Merged

Merged

Conversation

At this point, it is only used here

DavisVaughan

Comment on lines +60 to +61

#'
#' # `recode()` is superseded by `case_match()`
#' recode(char_vec, a = "Apple", b = "Banana")
#' case_match(char_vec, "a" ~ "Apple", "b" ~ "Banana", .default = char_vec)

DavisVaughan

@DavisVaughan

@@ -1,5 +1,10 @@
# dplyr (development version)

* `recode()` is superseded in favor of `case_match()`. `recode_factor()` is
#' use `recode_factor()`, which will change the order of levels to match
#' the order of replacements. See the [forcats](https://forcats.tidyverse.org/)
#' package for more tools for working with factors and their levels.
#' `recode()` is superseded in favor of [case_match()], which handles the most

@DavisVaughan

@DavisVaughan

Labels

None yet

Read the original on github.com ↗