Re: [R] Urgent query about R!

2011-03-29 Thread Rachel Chu
ight also try > > apply(expand.grid(rep(list(1:6), 4)), 1, paste, collapse = "", sep = "") > > HTH, > Jorge > * > > > * > On Tue, Mar 22, 2011 at 6:41 PM, Rachel Chu <> wrote: > >> Hi there, >> >> I am currently w

[R] Urgent query about R!

2011-03-22 Thread Rachel Chu
Hi there, I am currently working on a R programming project and got stuck. I am supposed to generate a set of possibilities of 1296 different combinations of 4 numbers, ie. , 1234, 2361, (only contain 1 to 6) in a matrix form here is what I got which has not been working as it keeps coming out