Skip to content
Prev 246602 / 398506 Next

How to join matrices of different row length from a list

On Jan 6, 2011, at 6:23 AM, Dimitris Rizopoulos wrote:

            
It's good that you solved the OP's question so neatly, since the  
alternate solution I was going to propose turns out to be for a  
different problem. Had the problem been for binding by row and padding  
with NA's, there is a ready-made function in the plyr package,  
rbind.fill.matrix(). No cbind.fill or cbind.fill.matrix, yet. It looks  
as though switching the roles of column and row in either of your  
respective solutions could create a general solution though.