I want to add a suffix or prefix to most variable names in a data.frame, typically after they\'ve all been transformed in some way and before performing a join. I don\'t ha
You can pass functions to rename_at, so do
means14 <- dat14 %>% group_by(class) %>% select(-ID) %>% summarise_all(funs(mean(.))) %>% rename_at(vars(-class),function(x) paste0(x,"_2014"))