I would just move the row.names to a column, and use Reduce instead of
do.call. Like this:
mylist <- lapply(mylist, function(x) data.frame(row = rownames(x), x))
Reduce(function(x, y){merge(x, y, by = "row", all=TRUE)}, mylist)
Best,
Ista
On Sat, Jan 17, 2015 at 11:37 AM, Remi Genevest wrote:
>
Hello,
I have a list of dataframes with different number of rows and I want to bind
columns by rownames and put some NAs where rownames do not match.
I was thinking about doing something like this :
do.call(merge,c(mylist,by="row.names",all.x=TRUE))
but I get the following error message :
/Err
2 matches
Mail list logo