I am trying to use the replace() function in dplyr to clean my data. I want to run it on all the columns except one. If I use a select() statement before I lose my character identifiers. I am looking for something like this
newdata<-data %>% replace(((.)>1000),0)
But with an exception
newdata<-data %>% replace(((-StoreID)>1000),0)