Yes, integer vector indexing. You haven't provided R code to work with so I 
will just refer you to read the pdf "An Introduction to R" included with most R 
installations for more details.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Rebecca <rebecca0...@yahoo.cn> wrote:

>Hi,
>If I have a matrix like
>1� 2� 3� 4
>5� 6� 7� 8,
>how can I repeat two rows as whole, to be like
>1� 2� 3� 4
>5� 6� 7� 8
>1� 2� 3� 4
>5� 6� 7� 8?
>�
>Since I have more two rows in a matrix and I need to repeat many times,
>I wonder whether there is a convenient command to do so.
>�
>Thanks!
>       [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@r-project.org 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.

______________________________________________
R-help@r-project.org 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.

Reply via email to