I'd like to export a list of different-sized objects to a single Excel sheet. In other words, I'd like one matrix to show up, then below it, the next matrix. Here's a simple example using XLConnect:
mat1<-matrix(c(0,1,2,3),nrow=2,ncol=2)
mat2<-matrix(c(0,1,2,3,4,5),nrow=2,ncol=3)
list<-list(mat1,mat2)
wb<-loadWorkbook("XLConnectExample1.xlsx",creat=TRUE)
createSheet(wb,name="sheet")
writeWorksheet(wb,list,sheet="sheet")
saveWorkbook(wb)
Right now, mat1 is simply written over the top of mat2.