Entering edit mode
4.4 years ago
dzisis1986
▴
70
I have a table like this :
V1 V2 V3 V4 V5 V6 V7 V8 V9
1 1 7512 1 0 0 0 0 0
1 7506 10949 0 0 0 0 0 1
1 10943 13175 0 0 0 0 0 0
1 13169 20070 0 1 1 0 0 0
Each line in the table is a fragment so the fragnum is 4. Con1 includes V4, V5, V6 and con2 V7, V8, V9 I want to create a new table in R in which i will check if elements in con1 and con 2 are zero or one . If there is at least 1 in elements of each condition it is covered if not it is uncovered so the table will look like this :
label fragnum covered uncovered
con1 4 2 2
con2 4 1 3
How to do it in R ?