Re: [R] Non repetitive permutations/combinations of elements

2006-05-09 Thread Nameeta Lobo
Marc,Berton,Rich,Greg and everyone else, THANKS A LOT for your help. nameeta Quoting Berton Gunter [EMAIL PROTECTED]: That will result in a data frame, rather than a matrix: Ah, indeed. I suspect that Nameeta doesn't care about the distinction, but you're certainly right. I

[R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Nameeta Lobo
Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns. e.g. 1s and -1s for 3 columns can be done uniquely in 2^3 ways. -1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1 1 1 1 -1 1 1 1 and for 4 columns in 2^4 ways and so on. I

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Greg Snow
, May 08, 2006 3:33 PM To: r-help@stat.math.ethz.ch Subject: [R] Non repetitive permutations/combinations of elements Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns. e.g. 1s and -1s for 3 columns can be done uniquely in 2^3 ways. -1

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Marc Schwartz (via MN)
On Mon, 2006-05-08 at 16:32 -0500, Nameeta Lobo wrote: Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns. e.g. 1s and -1s for 3 columns can be done uniquely in 2^3 ways. -1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Gabor Csardi
Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nameeta Lobo Sent: Monday, May 08, 2006 3:33 PM To: r-help@stat.math.ethz.ch Subject: [R] Non repetitive permutations/combinations of elements

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Berton Gunter
To: Nameeta Lobo Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Non repetitive permutations/combinations of elements On Mon, 2006-05-08 at 16:32 -0500, Nameeta Lobo wrote: Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Marc Schwartz (via MN)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Schwartz (via MN) Sent: Monday, May 08, 2006 2:50 PM To: Nameeta Lobo Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Non repetitive permutations/combinations of elements On Mon, 2006-05-08 at 16

Re: [R] Non repetitive permutations/combinations of elements

2006-05-08 Thread Berton Gunter
That will result in a data frame, rather than a matrix: Ah, indeed. I suspect that Nameeta doesn't care about the distinction, but you're certainly right. I think the reason for the extra step was worth explicitly mentioning, as many who are new to R are hazy about the distinction (they're