Displaying 4 results from an estimated 4 matches for "barah".
Did you mean:
sarah
2011 Apr 13
1
Extracting selected rows from a matrix to a submatix
...1] 30380 561
I have another list L contains , that contains some row names of matrix M
str (L)
chr [1:21037]
Now I want to extract the submatrix subM (21037 , 561) from the matrix M by matching the rownames (M) to the 21037 rownames o f L
How do I do that ?
Thanks and regards,
Pankaj Barah
Pankaj Barah Department of Biology
Norwegian University of Science & Technology (NTNU)
Realfagbygget, N-7491 Trondheim, Norway T
[[alternative HTML version deleted]]
2011 Apr 12
2
Merge matrix
I have two matrices A and B
> dim (A)
[1] 30380 104
> dim(Bt)
[1] 30380 63
I want to combine both A and B to matrix C where
>dim(C)
[1] 30380 167
How do I do that ?
Regards,
Pankaj Barah
Department of Biology,
Norwegian University of Science & Technology (NTNU)
Realfagbygget, N-7491
[[alternative HTML version deleted]]
2010 Nov 29
1
Extracting selected rows from a matrix
...000 rows (Each Row has rowname).
I have 13 different list of selected rownames (character) say 1000 each. Now I want to extract the all the columns according to the rownames in each the list.
How can I do that in R ?
1 ) For a single list
2) For all the 13 list at a time
Regards,
Pankaj Barah
Department of Biology,
Norwegian University of Science & Technology (NTNU)
[[alternative HTML version deleted]]
2011 Feb 08
2
Extrcat selected rows from a list
...4000 selected rownames from List2.
Psedocode will be something like this:
match rownames(List2) with rownames(List1)
extract selected matched 104 coloumns from (List1)
strore in-> List3
So the resulting List3 will contain 14,000 rows and 104 coloumns.
How do I do it in R ?
Regards,
P Barah
Department of Biology,
Norwegian University of Science & Technology (NTNU)
Realfagbygget, N-7491 Trondheim, Norway
[[alternative HTML version deleted]]