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
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
, 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
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
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
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
-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
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