a[NROW(a):1, ]
Michael
On May 11, 2012, at 3:00 PM, Trying To learn again
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 loop
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@r-project.org
2 matches
Mail list logo