Displaying 1 result from an estimated 1 matches for "mergebyrownam".
Did you mean:
mergebyrownames
2008 Jan 13
1
Trying to write Merge for more data.frames - Error in match.names(clabs, names(xi))
...the case when dataframes are merged by rows (0). But there is
a problem when a dataframe to be merged in the step n has some items that
are not in previous ones. Then I get "Error in match.names(clabs, names(xi))
: names do not match previous names".
Please help. Thank you Jiri Voller
MergeByRownames<-function(x,a,all.x=T,all.y=T){
stopifnot(is.list(x))
x<-lapply(x,as.data.frame,row.names = NULL)
## if (any(unlist(lapply(x,
function(x){is.null(rownames(x))})))){stop("Missing
names.")}
# doesnt work x<-lapply(x,as.data.frame,row.names = NULL)
assigne...