Re: [R] replicate matrix blocks different numbers of times into new matrix

2008-07-19 Thread Ralph S.
yes, this works, thank yo. very smart solution! -R > Date: Sat, 19 Jul 2008 19:55:58 -0400 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [R] replicate matrix blocks different numbers of times into new > matrix

Re: [R] replicate matrix blocks different numbers of times into new matrix

2008-07-19 Thread jim holtman
olve my > problem? > > Best, > > Ralph > > -------------------- >> Date: Sat, 19 Jul 2008 21:39:25 +0200 >> From: [EMAIL PROTECTED] >> To: [EMAIL PROTECTED] >> CC: r-help@r-project.org >> Subject: Re: [R] replicate matrix blocks di

Re: [R] replicate matrix blocks different numbers of times into new matrix

2008-07-19 Thread Ralph S.
9:25 +0200 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: r-help@r-project.org > Subject: Re: [R] replicate matrix blocks different numbers of times into new > matrix > > Ralph S. wrote: >> Hi, >> >> I am trying to replicate blocks of a matrix (defined

Re: [R] replicate matrix blocks different numbers of times into new matrix

2008-07-19 Thread Peter Dalgaard
Ralph S. wrote: Hi, I am trying to replicate blocks of a matrix (defined by factors) into another matrix, but an unequal, consecutive number of times for each factor. I need to find an elegant and fast way to do this, so loops will not work. An example of what I am trying to do is the follow

[R] replicate matrix blocks different numbers of times into new matrix

2008-07-19 Thread Ralph S.
Hi, I am trying to replicate blocks of a matrix (defined by factors) into another matrix, but an unequal, consecutive number of times for each factor. I need to find an elegant and fast way to do this, so loops will not work. An example of what I am trying to do is the following: # the data