[R] Formating a matrix in a exotic way

2010-09-19 Thread Megh Dal
Suppose I have following arbitrary matrix: set.seed(1) mat - matrix(rnorm(6), 3, 2) mat [,1] [,2] [1,] -0.6264538 1.5952808 [2,] 0.1836433 0.3295078 [3,] -0.8356286 -0.8204684 Now I want to make a simple object like (character type):

Re: [R] Formating a matrix in a exotic way

2010-09-19 Thread Gabor Grothendieck
On Sun, Sep 19, 2010 at 3:41 PM, Megh Dal megh700...@yahoo.com wrote: Suppose I have following arbitrary matrix: set.seed(1) mat - matrix(rnorm(6), 3, 2) mat           [,1]       [,2] [1,] -0.6264538  1.5952808 [2,]  0.1836433  0.3295078 [3,] -0.8356286 -0.8204684 Now I want to make a

Re: [R] Formating a matrix in a exotic way

2010-09-19 Thread Gabor Grothendieck
On Sun, Sep 19, 2010 at 4:23 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Sun, Sep 19, 2010 at 3:41 PM, Megh Dal megh700...@yahoo.com wrote: Suppose I have following arbitrary matrix: set.seed(1) mat - matrix(rnorm(6), 3, 2) mat           [,1]       [,2] [1,] -0.6264538  

Re: [R] Formating a matrix in a exotic way

2010-09-19 Thread David Winsemius
On Sep 19, 2010, at 3:41 PM, Megh Dal wrote: Suppose I have following arbitrary matrix: set.seed(1) mat - matrix(rnorm(6), 3, 2) mat [,1] [,2] [1,] -0.6264538 1.5952808 [2,] 0.1836433 0.3295078 [3,] -0.8356286 -0.8204684 Now I want to make a simple object like (character