Re: [R] Help with predict function in glm

2012-11-26 Thread genome1976
That did it! Thanks so much as always. I emailed the question to you because I think you are an R expert based on all the suggestions, feedback and codes I have received from you in the past. Yes, I do look for answers in the open forum but when it comes to a question for which the

Re: [R] Calculating all possible ratios

2012-10-05 Thread genome1976
'. In the end return 'r1', not cbind. Hope this helps, Rui Barradas Em 04-10-2012 23:38, genome1976 escreveu: Hi Rui, A while ago you helped me with calculaing all possible ratios from a dataset. This is the code I am using as suggested by you. data - read.table(new_data.txt

Re: [R] Calculating all possible ratios

2012-10-04 Thread genome1976
, S3, S4), c(P1:P2, P1:P3, P1:P4, P1:P5, P1:P6, P2:P1, P2:P3, P2:P4, P2:P5, P2:P6, P3:P1, P3:P2, P3:P4, P3:P5, P3:P6, P4:P1, P4:P2, P4:P3, P4:P5, P4:P6, P5:P1, P5:P2, P5:P3, P5:P4, P5:P6, P6:P1, P6:P2, P6:P3, P6:P4, P6:P5))) Rui Barradas genome1976 wrote Hi Rui, Thanks once again. I

Re: [R] Calculating all possible ratios

2012-05-14 Thread genome1976
, P5:P1, P5:P2, P5:P3, P5:P4, P5:P6, P6:P1, P6:P2, P6:P3, P6:P4, P6:P5))) Rui Barradas genome1976 wrote Hi Rui, Thanks once again. I really appreciate it. I tried using the code with the following dataset: Sample P1 P2 P3 P4 P5 P6 P7 P8 P9 P10

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
, 11 May 2012 12:39:23 -0700 (PDT) From: genome1976[hidden email] To:[hidden email] Subject: [R] Calculating all possible ratios Message-ID:[hidden email] Content-Type: text/plain I have a data matrix with genes as columns and samples as rows. I want to create all possible gene

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
=char)) colnames(r2) - apply(cmb, 2, function(j) paste(cn[rev(j)], collapse=char)) cbind(r1, r2)[, order(c(colnames(r1), colnames(r2)))] } m1 - matrix(1:24, ncol=6) pairwise.ratios(m1) Rui Barradas genome1976 wrote Thanks so much Rui. I really appreciate all the help. I

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
, P5:P4, P5:P6, P6:P1, P6:P2, P6:P3, P6:P4, P6:P5))) Rui Barradas genome1976 wrote Hi Rui, Thanks once again. I really appreciate it. I tried using the code with the following dataset: Sample P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 S1 5292.9

[R] Calculating all possible ratios

2012-05-11 Thread genome1976
I have a data matrix with genes as columns and samples as rows. I want to create all possible gene ratios.Is there an elegant and fast way to do it in R and write it to a dataframe? Thanks for any help. Som. -- View this message in context: