Set certain values to NA with dplyr

I'm trying to figure out a simple way to do something like this with dplyr (data set = dat, variable = x): day$x[dat$x<0]=NA Should be simple but this is the best I can do at the moment. Is t...