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 ans

Re: [R] Calculating all possible ratios

2012-10-05 Thread genome1976
x27;. 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

Re: [R] Calculating all possible ratios

2012-10-04 Thread genome1976
ot;, "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", &

Re: [R] Calculating all possible ratios

2012-05-14 Thread genome1976
6", "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", &qu

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
1", "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", &quo

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
ction(j) x[, j[2]]/x[, j[1]]) colnames(r1) <- apply(cmb, 2, function(j) paste(cn[j], collapse=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) pairw

Re: [R] Calculating all possible ratios

2012-05-12 Thread genome1976
veu: > Date: Fri, 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 colu

[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: http://r.789695.n4.nabble.com/Calculating-all-possible