[R] A matrix calculation

Bogaso bogaso.christofer at gmail.com
Sun Aug 23 20:37:02 CEST 2009


I have suppose a matrix like that

> mat <- matrix(1:21, 7)
> mat
     [,1] [,2] [,3]
[1,]    1    8   15
[2,]    2    9   16
[3,]    3   10   17
[4,]    4   11   18
[5,]    5   12   19
[6,]    6   13   20
[7,]    7   14   21

>From this matrix, I want to create a vector like tha :

c(mat[7,], mat[6,], mat[5,], ....., mat[1,])

Can anyone please guide me, how to do that?

Thanks
-- 
View this message in context: http://www.nabble.com/A-matrix-calculation-tp25106048p25106048.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list