Re: [R] Split a matrix for mixture distribution

2008-02-24 Thread Uwe Ligges
Evgenia wrote: > Hello, > I have a matrix with 4000 rows and 8 columns with 1 and zeros > Every 1000 rows comes for a different rule, f1,f2,f3,f4. > > 1 1 1 1 0 0 0 0 > 1 1 1 1 0 0 0 0 > > 0 0 0 0 1 1 1 1 > 0 0 0 0 1 1 1 1 > ... > 1 1 0 0 1 1 0 0 > 1 1 0 0 1 1 0 0 > ... > 0 0 1 1 0 0 1 1

[R] Split a matrix for mixture distribution

2008-02-24 Thread Evgenia
Hello, I have a matrix with 4000 rows and 8 columns with 1 and zeros Every 1000 rows comes for a different rule, f1,f2,f3,f4. 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 ... 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 ... 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 How can I extract 4 matri