How can I use mutate_if() to change values of b to NA in case a > 25
I can do it with ifelse but I feel mutate_if is created for such task.
library(tidyverse)
tbl <- tibble(a = c(10, 20, 30, 40, 10, 60),
b = c(12, 23, 34, 45, 56, 67))