Re: [R] Converting array to matrix

2012-09-29 Thread arun
uot; Cc: Sent: Friday, September 28, 2012 6:59 PM Subject: [R] Converting array to matrix Hi, I have a 3d array as below, I want to make this array to a matrix of p=50(rows) and n=20(columns) with the coverage values . The code before the array is: library(binom) Loading required package: l

Re: [R] Converting array to matrix

2012-09-28 Thread David Winsemius
On Sep 28, 2012, at 3:59 PM, farnoosh sheikhi wrote: > Hi, > > I have a 3d array as below, I want to make this array to a matrix of > p=50(rows) and n=20(columns) with the coverage values . > The code before the array is: ?matrix mat <- matrix(datfrm$coverage, 50, 20) filled.contour(mat) # u

[R] Converting array to matrix

2012-09-28 Thread farnoosh sheikhi
Hi, I have a 3d array as below, I want to make this array to a matrix of p=50(rows) and n=20(columns) with the coverage values . The code before the array is: library(binom) Loading required package: lattice pi.seq<-seq(from = 0.01, to = 0.5, by = 0.01) no.seq<-seq(from = 5, to = 100, by = 5) cp