I\'m looking to find a simple way to do something like the following but with dplyr, essentially just replacing the values in 3 columns with NA when the condition is met.
If you instead want a data.frame-wise replacement of a specific value (-99999) in any column for NA:
dat %>% mutate_all(funs(ifelse(.==-99999, NA, .)))