[R] Flip Matrix form file?

2008-07-23 Thread Chris82
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,]123 [2,]456 [3,]789 b1 - apply(t(b),1,rev) b1 [,1]

Re: [R] Flip Matrix form file?

2008-07-23 Thread Henrik Bengtsson
Hi. On Wed, Jul 23, 2008 at 9:23 AM, Chris82 [EMAIL PROTECTED] wrote: 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,]123

Re: [R] Flip Matrix form file?

2008-07-23 Thread Chris82
Thanks a lot, that resolve my probleme! -- View this message in context: http://www.nabble.com/Flip-matrix-from-file--tp18614800p18619853.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list