I have a large data frame imported from a Google Forms survey with very long column names (basically, the column names are the survey questions themselves).
So, my i
Use the colnames function:
colnames(d) <- paste0("Q",1:ncol(d))