title: Replace values greater than zero with 1 in r
body: <p>I want to use <code>tidyverse</code> to take a dataframe <code>df</code> and replace all non-zero values to a value of 1. <a href="https://i.stack.imgur.com/5tyaw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5tyaw.png" alt="enter image description here"></a></p>