[R] simple matrix question

2003-06-05 Thread Gabor Grothendieck
--On woensdag 4 juni 2003 15:21 +0200 Christoph Lehmann wrote: > what is the easiest way to get from > x > x1 x2 > [1,] 2 3 > [2,] 3 2 > [3,] 1 3 > [4,] 1 4 > > xbar1 >x1 x2 > [1,] 1.75 3 > [2,] 1.75 3 > [3,] 1.75 3 > [4,] 1.75 3 > > with the mean of the columns of x as

Re: [R] simple matrix question

2003-06-05 Thread Peter Dalgaard BSA
Paul Lemmens <[EMAIL PROTECTED]> writes: > Hoi Christoph, > > --On woensdag 4 juni 2003 15:21 +0200 Christoph Lehmann > <[EMAIL PROTECTED]> wrote: > > > what is the easiest way to get from > > x > > x1 x2 > > [1,] 2 3 > > [2,] 3 2 > > [3,] 1 3 > > [4,] 1 4 > > > > xbar1 > >x

Re: [R] simple matrix question

2003-06-04 Thread Paul Lemmens
Hoi Christoph, --On woensdag 4 juni 2003 15:21 +0200 Christoph Lehmann <[EMAIL PROTECTED]> wrote: what is the easiest way to get from x x1 x2 [1,] 2 3 [2,] 3 2 [3,] 1 3 [4,] 1 4 xbar1 x1 x2 [1,] 1.75 3 [2,] 1.75 3 [3,] 1.75 3 [4,] 1.75 3 with the mean of the columns of x

[R] simple matrix question

2003-06-04 Thread Christoph Lehmann
what is the easiest way to get from > x x1 x2 [1,] 2 3 [2,] 3 2 [3,] 1 3 [4,] 1 4 the matrix xbar > xbar1 x1 x2 [1,] 1.75 3 [2,] 1.75 3 [3,] 1.75 3 [4,] 1.75 3 with the mean of the columns of x as values? thanks christoph -- Christoph Lehmann <[EMAIL PROTECTED]> Univ