s-news
[Top] [All Lists]

Re: permutation

To: s-news@lists.biostat.wustl.edu (S-NEWS)
Subject: Re: permutation
From: sbackwards@comcast.net (SD Chasalow)
Date: Thu, 14 Apr 2005 22:07:20 +0000
Cc: larisa.reyderman@spcorp.com
Larisa,
 
If you really DO want to do this in SPLUS, you might try out function permn in my combinat library section:
 
 
or  the R port of the same name at CRAN.
 
But as mentioned, this will produce a very big object (if it doesn't run out of memory first), and likely will take a very long time.
 
Cheers,
Scott
 
Scott Chasalow
Statistical Genetics and Biomarkers
Bristol-Myers Squibb
 

Dear All,

I have a seemingly easy question.  I need to create a matrix consisting of all possible permutations of the following vector:

0.5  1.0  1.5  2.0  3.0  4.0  5.0  6.0  8.0 10.0 12.0 16.0

I know that "sample" function with (replace=F) will generate a permutation, however, I need all possible permutations.

Thank you for your help.

Larisa

<Prev in Thread] Current Thread [Next in Thread>