Skip to content

binding all elements of list (character vectors) to a matrix as rows

4 messages · Gerrit Eichner, David Winsemius, Marion Wenty

#
Marion,

try

rbind( Mymatrix, do.call( "rbind", Z))

Hth  --  Gerrit
On Tue, 11 Oct 2011, Marion Wenty wrote:

            
#
On Oct 11, 2011, at 2:47 AM, Marion Wenty wrote:

            
rbind(Mymatrix, t(as.data.frame(Z)))

The next method could be used if you had more lists:

do.call(rbind, list(Mymatrix, t(as.data.frame(Z))))
2 days later