multimerge | R Documentation |
This function makes calls to merge()
to merge every other dataset
with the one next to it, repeating until only one dataset remains.
multimerge(x, ...)
x |
a list of data frames. |
... |
all other arguments for |
A single, merged data.frame
.
Sercan Kahveci
#generate test data
testlist<-list()
lsize<-50
for(i in 1:lsize){
testlist[[i]]<-data.frame(key=sample(1:500,100),
junk=letters[sample(1:26,100,replace=TRUE)])
colnames(testlist[[i]])[2]<-paste0("info",i)
}
multimerge(testlist,by="key",all=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.