Subset non 0 values in a data.frame
I have a data.frame that looks like this:
Col_names1 Col_values1 Col_names2 Col_values2
a 98 f 1
b 12 h 0.8
d 0 mn 0
e 0.12 p 0
.... .... .... ....
I would like the following output:
Col_names1 Col_values1 Col_names2 Col_values2
a 98 f 1
b 12 h 0.8
e 0.12
.... .... .... ....
Totally the data.frame has 500 columns and 80 rows.
Can anyone help me please?
Best
F.
No comments:
Post a Comment