Re: [R] How to log-2 transform a matrix

2011-06-10 Thread wcc
CGH<-as.matrix(CGH) mode(CGH)<-"numeric" log2(CGH) -- View this message in context: http://r.789695.n4.nabble.com/How-to-log-2-transform-a-matrix-tp839455p3588441.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org ma

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread Ted Harding
On 10-Nov-07 16:43:28, Ben Bolker wrote: > affy snp wrote: >> Hi Ted, >> My matrix looks like: >> >>> dim(CGH) >> [1] 238304243 >>> CGH[1:30,1:4] >> WM806SignalA WM1716SignalA WM1862SignalA WM1963SignalA >> SNP_A-1909444 1.59 1.48 1.78 2.59 >> S

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread Ben Bolker
affy snp wrote: > > Hi Ted, > > My matrix looks like: > >> dim(CGH) > [1] 238304243 >> CGH[1:30,1:4] > WM806SignalA WM1716SignalA WM1862SignalA WM1963SignalA > SNP_A-1909444 1.59 1.48 1.78 2.59 > SNP_A-2237149 2.24 1.87

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread Paul Smith
On Nov 10, 2007 2:49 PM, affy snp <[EMAIL PROTECTED]> wrote: > My matrix looks like: > > > dim(CGH) > [1] 238304243 > > CGH[1:30,1:4] > WM806SignalA WM1716SignalA WM1862SignalA WM1963SignalA > SNP_A-1909444 1.59 1.48 1.78 2.59 > SNP_A-2237149

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread affy snp
Hi Ted, My matrix looks like: > dim(CGH) [1] 238304243 > CGH[1:30,1:4] WM806SignalA WM1716SignalA WM1862SignalA WM1963SignalA SNP_A-1909444 1.59 1.48 1.78 2.59 SNP_A-2237149 2.24 1.87 1.95 2.04 SNP_A-4303947

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread Ted Harding
On 10-Nov-07 14:25:32, affy snp wrote: > Dear list, > I am wondering how to log-2 based transform a matrix > with numeric values? > I tried > CGHlog2<-log2(CGH) but got an error. Then I > found for log2(x) in R, the x has to be a numeric or > complex vector. Any method for a matrix? Yes, simply th

Re: [R] How to log-2 transform a matrix

2007-11-10 Thread Paul Smith
On Nov 10, 2007 2:25 PM, affy snp <[EMAIL PROTECTED]> wrote: > I am wondering how to log-2 based transform a matrix with numeric values? > I tried > CGHlog2<-log2(CGH) but got an error. Then I found for log2(x) in R, > the x has to be a numeric or complex vector. Any method for a matrix? One can u

[R] How to log-2 transform a matrix

2007-11-10 Thread affy snp
Dear list, I am wondering how to log-2 based transform a matrix with numeric values? I tried > CGHlog2<-log2(CGH) but got an error. Then I found for log2(x) in R, the x has to be a numeric or complex vector. Any method for a matrix? Thanks a lot and have a good weekend! Allen >Error in Math.da