Displaying 2 results from an estimated 2 matches for "100x2".
Did you mean:
1002
2004 Feb 18
4
How to repeat a procedure
Hello,
1. After I generate a 100x50 matrix by x3<-matrix(0,100,50);for (i in
1:100) {x1<-rpois(50, mu[i]);x2<-x1; x2[runif(50)<.01]<-0; x3[i,]<-x2},
2. I want to calculate means and sample variances of each row and create a
new matrix 100x2;
3. I then want to repeat above procedure 500 times so that eventually I
will have 500 100x2 matrices.
Would someone mind helping me to code 2 & 3?
Thanks ahead of time.
Heyen
2011 Jun 26
2
Ordering a matrix based on cluster no
Hi All
I have a symmetric matrix of genes ( 100x100 matrix). I also have a matrix
(100x2) of two columns where column 1 has the gene names and column 2 has
the cluster it belongs to (they are sorted and grouped based on the cluster
no).
I would like to order the rows and columns of the 100x 100 matrix such that
the first n genes correspond to cluster 1 and next n genes correspond to
c...