Re: [R] extra arguments in do.call applied to a list of dataframes

2015-01-17 Thread Ista Zahn
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: >

[R] extra arguments in do.call applied to a list of dataframes

2015-01-17 Thread Remi Genevest
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