[R] Matrix invert

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Fri May 11 23:06:46 CEST 2012


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.



More information about the R-help mailing list