Re: [R] Help with use of rep function in R

2009-09-07 Thread Rolf Turner
On 8/09/2009, at 2:20 PM, Subodh Acharya wrote: Dear List,I am trying to use rep function in the following conditions A = c( 5, 6, 7, 11, 9, 12, 10, 15) B = c(12,15, 21, 31, 25, 27,32, *34*,13,12, 34, 33, 24, 29, 26, *28*,22,14,27,22,21,12,32, 16) I need to repeat each element of A, as many

Re: [R] Help with use of rep function in R

2009-09-07 Thread David Winsemius
On Sep 7, 2009, at 10:20 PM, Subodh Acharya wrote: Dear List,I am trying to use rep function in the following conditions A = c( 5, 6, 7, 11, 9, 12, 10, 15) B = c(12,15, 21, 31, 25, 27,32, *34*,13,12, 34, 33, 24, 29, 26, *28*,22,14,27,22,21,12,32, 16) I need to repeat each element of A, as