I am trying to combine columns having same name from 3 different data frames and create new data frame with combined columns. The challenging thing is each data-frame has 100 columns so I have to create 100 new data frames and write each data-frame as new text file with unique column name.
write.csv(cbind(data1[,1], data2[,1], data3[,1]), "new1.csv")
this statement generates new csv file that has first column of each data frame (data1, data2, data3) as shown below.
Similarly I need to create 9 csv files using 9 columns in each data frame. If possible, please help in this.
Thank you very much.