问题 I'm trying to merge 4 dataframes based on 2 columns, but keep track of which dataframe a column originated from. I'm running into an issue at tracking the columns. (see end of post of dput(dfs)) #df example (df1) Name Color Freq banana yellow 3 apple red 1 apple green 4 plum purple 8 #create list of dataframes list.df <- list(df1, df2, df3, df4) #merge dfs on column "Name" and "Color" combo.df <- Reduce(function(x,y) merge(x,y, by = c("Name", "Color"), all = TRUE, accumulate=FALSE, suffixes =