Suppose, I have dummy data like this:
x1 x2 x3 x4 x5 x6
26 25 30 0 23 27
24 0 26 0 22 30
20 0 24 0 21 21
27 0 26 0 27 25
22 0 0 0 28 22
20 0 0 0 24 20
22 0 0 0 20 27
22 0 0 0 23 28
30 0 0 0 27 24
23 0 0 0 24 22
26 0 0 0 26 26
I need clean this data.
1. delete all сolumns with zero values (for eample x4)
2. delete all сolumns with the number of non-zero values less than 5(x2-x3).
Is it possible write that function or loop?