Is there any functional differences between the function
dplyr::recode_factor? It seems to me as if they are quite similar functionally, with the
dplyr::recode_factor having the added benefit of
- Ability to specify
- Ability to take in non-factor vectors
forcats::fct_recode having the benefit of
- Ability to keep any unchanged factors the same as before
Additionally, my understanding of the functions are that their recoding arguments work in the opposite direction (i.e.
forcats::fct_recode has arguments that go: new = "old", while
dplyr::recode_factor has arguments that go: old = "new").
Are there other differences I am missing?