Re: [R] for loop populate matrix
l. Thank you.ChrisMy apologies to Dennis for direct reply, I'm not used to using 'reply all': tales of havoc wrought > Date: Tue, 10 May 2011 11:19:51 -0700 > Subject: Re: [R] for loop populate matrix > From: djmu...@gmail.com > To: sgl...
Re: [R] for loop populate matrix
Why loop? matrix(rep(3:0, each = 5), ncol = 5, byrow = TRUE) [,1] [,2] [,3] [,4] [,5] [1,]33333 [2,]22222 [3,]11111 [4,]00000 HTH, Dennis On Tue, May 10, 2011 at 11:10 AM, Chris English wrote: > > Dear List, >