[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

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

2008-07-19 Thread Ralph S.
] 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 by factors) into another matrix, but an unequal, consecutive number of times for each

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

2008-07-19 Thread jim holtman
misspecification - any ideas how I could solve 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 different numbers of times

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 CC: r-help@r-project.org