lets have data set
`v6 v7 v8 v9 x 123 123 x x 123 456 x x 789 789 x x 123 789 x `
how filter rows in values columns 7 , 8 equal each other pulled out, while still keeping header columns after filtering? i've tried code:
hg19 -> hg19[which(hg19$v7 == hg19$v8),]
and code:
non_coding= subset(hg19,hg19[8] == hg19[7])
where hg19 data set. note: real data set has on 99,000 rows , 16 columns
non_coding <- subset(hg19, hg19$v7 == hg19$v8)