问题 I have several data.frame s in my Global Environment that I need to merge. Many of the data.frame s have identical column names. I want to append a suffix to each column that marks its originating data.frame . Because I have many data.frame s, I wanted to automate the process as in the following example. df1 <- data.frame(id = 1:5,x = LETTERS[1:5]) df2 <- data.frame(id = 1:5,x = LETTERS[6:10]) obj <- ls() for(o in obj){ s <- sub('df','',eval(o)) names(get(o))[-1] <- paste0(names(get(o))[-1],'