I would like to change the column names of my 4th and 5th column with this code, but it is not working.
colnames(df[,4:5]) <- paste(colnames(df[,4:5]), "13", sep= "_")
It works if I remove [,4:5] and change the column names for the whole data frame.
colnames(df) <- paste(colnames(df), "13", sep= "_")
but my desired output is just to change the 4th and 5th column. Thanks.