Hi,
I'm trying to remove the rows of a dataframe where there are at least 7 values higher than 5, I have tried multiple for loops but it doesn't seem to work and I think there should be an easy way to do it, can you help?
The output of head(df) looks like this
CA001 CA002 CA003 CA004 CA005 CA006 CA007 CA008 CA009 CA010
hsa-miR-1185-1-3p 0 0 0 21 0 19 0 5 0 0
hsa-miR-1245b-5p 0 7 0 14 0 15 18 21 9 18
hsa-miR-1252-3p 0 2 0 19 7 15 24 9 11 11
hsa-miR-135a-5p 0 0 0 14 12 22 32 4 5 0
hsa-miR-154-3p 0 2 0 7 0 10 19 8 7 0
hsa-miR-2054 0 7 0 7 0 4 0 0 0 11
Thank you!