This table is called 'temp'
No. of times Clear Included Percentage
2 1 1 0.50
4 0 1 0.60
0 0 0 0.20
For example, if I have this data set, I want to be converting all numbers above 0 under the 'No. of times' column to a 1 and leaving the 0 as it is.
Overall I'm wanting a data set looking like this
No. of times Clear Included Percentage
1 1 1 0.50
1 0 1 0.60
0 0 0 0.20
How can I do this?
data.frame,data.tableandtableinterchangeably, which is a mistake. They are distinct classes of R objects and you should not use them interchangeably.