Off topic:Check values in columns of a window of fragments and return new table based on condition in R
0
0
Entering edit mode
4.5 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 ?

R fragments column table • 401 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1503 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6