[R] How to repeat vectors ?

From: Tong Wang <wangtong_at_usc.edu>
Date: Sat 30 Sep 2006 - 06:23:48 GMT


    If I have a matrix  , say       a11   a12
                                                   a21  a22
    Is there a routine to get:      a11  a12
                                                     a11  a12
                                                     a21   a22
                                                     a21   a22

     Thanks a lot for any help.


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 and provide commented, minimal, self-contained, reproducible code. Received on Sat Sep 30 16:28:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 30 Sep 2006 - 07:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.