I have a data frame that has columns ranging from start_1 to start_32. I'd like to rename all of them to m1 to m32. So far I have done this using the following code:
df %>% rename(m1 = start_1, m2 = start_2, ... m32 = start_32) I may need to do this a few more times for other variables and I am looking for more condensed way of achieving the same goal. Thanks!