[R] How to make this binary hit matrix

2008-06-15 Thread ssls sddd
Hi all, Basically I want to make a binary hit matrix. For instance, if I have a file called 'pair.txt': set_agene_1 set_agene_2 set_agene_3 set_bgene_3 set_bgene_4 set_bgene_5 set_cgene_1 set_cgene_3 And I want to convert it to a binary matrix as: Rowsset_a

[R] How to make this binary hit matrix

2008-06-15 Thread ssls sddd
Hi all, Basically I want to make a binary hit matrix. For instance, if I have a file called 'pair.txt': set_agene_1 set_agene_2 set_agene_3 set_bgene_3 set_bgene_4 set_bgene_5 set_cgene_1 set_cgene_3 And I want to convert it to a binary matrix as: Rowsset_a

Re: [R] How to make this binary hit matrix

2008-06-15 Thread Marc Schwartz
on 06/15/2008 12:46 PM ssls sddd wrote: Hi all, Basically I want to make a binary hit matrix. For instance, if I have a file called 'pair.txt': set_agene_1 set_agene_2 set_agene_3 set_bgene_3 set_bgene_4 set_bgene_5 set_cgene_1 set_cgene_3 And I want to

Re: [R] How to make this binary hit matrix

2008-06-15 Thread ssls sddd
Thank you very much, Marc! Have a great weekend! Alex On Sun, Jun 15, 2008 at 1:58 PM, Marc Schwartz [EMAIL PROTECTED] wrote: on 06/15/2008 12:46 PM ssls sddd wrote: Hi all, Basically I want to make a binary hit matrix. For instance, if I have a file called 'pair.txt': set_agene_1