I have the following problem: in a csv-file I have a column for species, one for transect, one for the year and one for the AUC. In another csv-file I have a column for tran
Please use
library(dplyr) df1<- read.csv("F:\\Test_Anything\\Merge\\1.csv" , head(T)) df2<-read.csv("F:\\Test_Anything\\Merge\\2.csv" , head(T)) r <- merge(df1,df2,by=c('NAME','NAME'),all.x=T) write.csv(r,"F:\\Test_Anything\\Merge\\DF.csv" , all(T) )