问题 I have data frame like this > d <- data.frame(team.aaa=1:3, team.aab=4:6, team.aac=7:9) > d # team.aaa team.aab team.aac #1 1 4 7 #2 2 5 8 and, desired output d <- rename(d, c("team.aaa"="aaa_team", "team.aab"="aab_team", "team.aac"="aac_team")) > d # aaa_team aab_team aac_team #1 1 4 7 #2 2 5 8 #3 3 6 9 I could do it with rename string, but want to use search and replace option because of huge data volume Many thanks in advance 回答1: Based on the example showed in the OP's post, it seems that