[R] summary: cbind a list of matrices

From: Mauro Gasparini <gasparin_at_calvino.polito.it>
Date: Sun 17 Jul 2005 - 00:28:04 EST

Thanks to all kind people who answered. Attached is a useful reply, among many others.

Mauro Gasparini

Professore Straordinario di Statistica
Dipartimento di Matematica, Politecnico di Torino
Corso Duca degli Abruzzi 24 I-10129 Torino, Italy 

tel: +39 011 564 7546
fax: +39 011 564 7599
email: gasparini@calvino.polito.it
www: http://calvino.polito.it/~gasparin/

Coordinatore Scientifico del
Centro Universitario di Statistica per le Scienze Biomediche
dell'UniversitÓ Vita-Salute San Raffaele di Milano
www: http://www.cussb.unihsr.it/

attached mail follows:

Two different techniques for the two questions: do.call('rbind', list.of.matrices) orig.mat[rep(1:nrow(orig.mat), 5), ] See S Poetry for details. Patrick Burns patrick@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Mauro Gasparini wrote:
>Dear users,
>I have a list of several matrices with the same number of columns,
>how do I rbind them all with a vectorized command?
>A related simpler question is, how do I vectorize the instruction
>that rbinds together several copies of the same matrix?

______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Sun Jul 17 00:34:53 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST