You can use 't' to transpose your data.frame then you do what you said by 'cbind' and at last you transpose again. Best! A.S. ---------------------------------- Sincerely yours. Dr. Alessandro Semeria Tel. +39 544 536811 Models and Simulation Lab of Fax. +39 544 538663 The Environment Research Center - Montecatini (Edison Group), E-mail: asemeria at cramont.it Via Ciro Menotti 48, 48023 Marina di Ravenna (RA), Italy -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
repeating a dataframe n times in the direction of the rows
2 messages · AlessandroSemeria@cramont.it, Thomas Lumley
On Mon, 11 Nov 2002 AlessandroSemeria at cramont.it wrote:
You can use 't' to transpose your data.frame then you do what you said by 'cbind' and at last you transpose again.
This turns out not to be the case. It only works if all your variables are of the same type. -thomas Thomas Lumley Asst. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._