a[NROW(a):1, ]
Michael
On May 11, 2012, at 3:00 PM, Trying To learn again <tryingtolearnagain at
gmail.com> wrote:
> I all,
>
> I have a matrix like this
>
> a>
> 1 4
> 2 7
> 3 6
>
>
> I want to create a new matrix
>
> b>
> 3 6
> 2 7
> 1 4
>
> Anyone knows if there is a "reverse" function?
> I can do it with loops if no exits.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.