Reputation: 513
I have a large matrix where the first 4 rows and columns look like this:
BI00R1 BI00R2 BI00R3 BI08R1
c51581_g1_i1 0.00 0.00 0.00 0.00
c19380_g1_i1 0.00 0.00 0.00 0.00
c71266_g2_i1 0.00 0.00 0.00 0.00
c70836_g2_i9 572.19 513.89 424.49 760.92
How can I extract one row, say, the one starting with 'c19380_g1_i1'
from the matrix?
Probably trivial, still I'd appreciate your help.
Upvotes: 5
Views: 12245
Reputation: 81733
mat['c19380_g1_i1', ]
where mat
is the name of your matrix.
Upvotes: 6