permutate data matrix
2
0
Entering edit mode
Kripa R ▴ 180
@kripa-r-4482
Last seen 9.7 years ago
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. 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]]
• 758 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States
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
ADD COMMENT
0
Entering edit mode
Kripa R ▴ 180
@kripa-r-4482
Last seen 9.7 years ago
Sorry about the confusion there! I did mean permutation of the data, ill try looking into that package Thanks Sent from my BlackBerry? smartphone -----Original Message----- From: "James W. MacDonald" <jmacdon@med.umich.edu> Date: Fri, 11 Nov 2011 19:52:57 To: <kripa777 at="" hotmail.com=""> Cc: <bioconductor at="" r-project.org=""> Subject: Re: [BioC] permutate data matrix 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
ADD COMMENT

Login before adding your answer.

Traffic: 470 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6