[BioC] permutate data matrix

James W. MacDonald jmacdon at med.umich.edu
Fri Nov 11 20:52:57 CET 2011


Hi Kripa,

On 11/11/2011 1:34 PM, Kripa R wrote:
> Hello,
> I'm trying to permutate the data in the columns of a matrix. I don't want any replacement but I would like each unique combination/ matrix saved as a variable.

Do you want permutations or combinations? Depending on what you are 
doing, you may think you want permutations when in fact you want 
combinations.

Anyway, see ?permutations in the gtools package.

Best,

Jim


>
>
>
>
>
>
>    1A
>    1B
>    1C
>    2A
>    2B
>    2C
>
>
>    1
>    0.42
>    0.14
>    0.84
>    0.78
>    0.08
>    0.44
>
>
>    2
>    0.28
>    0.34
>    0.02
>    0.85
>    0.23
>    0.19
>
>
>    3
>    0.56
>    0.43
>    0.68
>    0.29
>    0.34
>    0.29
>
>
>    4
>    0.54
>    0.33
>    0.65
>    0.45
>    0.96
>    0.63
>
>
>    5
>    0.44
>    0.58
>    0.84
>    0.34
>    0.17
>    0.53
>
>
> Any suggestions would be greatly appreciated! Thanks
>
>   		 	   		
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor

-- 
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826

**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues 



More information about the Bioconductor mailing list