Displaying 1 result from an estimated 1 matches for "tp18614800p18619853".
2008 Jul 23
2
Flip Matrix form file?
Hello,
I have a problem to flip a 200x200 matrix, which is imported by a .asc file.
I want to flip the matrix like in a created example below:
> b <- matrix(1:9,3,3,byrow=T)
> b
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
> b1 <- apply(t(b),1,rev)
> b1
[,1] [,2] [,3]
[1,] 7 8 9
[2,] 4 5 6
[3,] 1 2 3
but my