title: Mutate multiple columns based on multiple conditions
body: <p>I am trying to mutate multiple columns in a data frame based on several conditions as follows.</p>
  <pre><code>if a value &gt;= 0.25, value = 1
  value &lt;= 0.25, value = 1
  value &lt;= 1.2, value = 2
  value &gt;= -1.2, value = -2
  value &lt;= 0.25 &amp; value &gt;=-0.25, value = 0
  </code></pre>
  <p>Data:</p>
  <pre><code>structure(list(col = c(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;, &quot;e&quot;), col2 = c(0.023, 
  0.41, 0.032, -0.58, -2.6), col3 = c(-0.123, 0.551, -0.032, 0.58, 
  -4.6), col4 = c(-0.23, 0.1, 0.25, 1.858, -6.6)), class = &quot;data.frame&quot;, row.names = c(NA, 
  -5L))
  </code></pre>
  <p>I have more than 75 columns so I couldn't use the traditional case_when with a single column. I really hope someone could help.</p>