I have a list of dataframes, myfiles
all of which have the same first column name wc_Monday
I wish to merge into a single dataframe, the name of the first column for all dataframes is the same, I cannot find a way to do this, so far I have tried:
do.call(merge(by="wc_Monday"),myfiles)
but this returns error
Error in as.data.frame(x) : argument "x" is missing, with no default
and
lapply(myfiles, function(x,y) merge(x,y,by.x="wc_Monday",by.y="wc_Monday",all=FALSE))
however this is giving error:
Error in as.data.frame(y) : argument "y" is missing, with no default
and
merged.data.frame = Reduce(function(...) merge(..., all=F), myfiles)
However this is producing a dataframe much longer than the sum of all the dataframes.
Any help on why these won't work greatly appreciated.