[BioC] Program in R

Kenny Ye kye at ams.sunysb.edu
Tue Feb 10 05:25:24 MET 2004


wrong place for this question, should go to r-help at r-project.org

anyway, i am not aware any R-function that gives all subsets of size k. i
will use matlab to create it and input it back to R if you don't want to
stick with matlab for the rest.

if you have some time to spare, you can create your own function by
implement the algorithms that generates all subsets of size k. a good
source for such algorithms is http://www.cs.sunysb.edu/~algorith/

good luck

Kenny

Kenny Ye
Assistant Professor
Department of Applied Math and Statistics
SUNY at  Stony Brook
Stony Brook, New York 11794-3600
Phone (631)632-9344
Fax   (631)632-8490

On Mon, 9 Feb 2004, E Motakis, Mathematics wrote:

> Dear all,
> 
> I am working in R a program for cross validation. I have a vector of 20 
> observations and I want to find all the possible combinations (20,4) and 
> store them as data. I wonder if someone can help me.
> 
> Thanks in advance.
> Makis
> 
> ----------------------
> E Motakis, Mathematics
> E.Motakis at bristol.ac.uk
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor
>



More information about the Bioconductor mailing list