poissonconsulting / tidyplus

An R package of additional tidyverse functions
https://poissonconsulting.github.io/tidyplus/
Other
9 stars 0 forks source link

Add `replace_if(x, y)` function #1

Closed joethorley closed 2 years ago

joethorley commented 2 years ago

vectorized replacement of values in x where y is true (as opposed to FALSE or NA).

Might be closer to intent of if_else2()

joethorley commented 2 years ago

still needs three arguments I think if_else2() clearer