title: about `condition` must be a logical vector, not a `quosures` object
body: <p>I would like to create an indicator variable.</p>
  
  <pre><code> data&lt;-data.frame(id=seq(1,10,1),DX1=c(1,0,4,0,0,4,1,0,0,0),DX2=c(1,0,4,0,4,0,0,4,0,0),DX3=c(1,0,5,0,1,5,1,0,5,0))
  
  
  data$indicator&lt;-ifelse(data$DX1&gt;=3|data$DX2&gt;=3|data$DX3&gt;=3,1,0)
  </code></pre>
  
  <p>How can we use ifelse or dplyr since I hae DX1-DX100 columns.</p>
  
  <p>One solution is </p>
  
  <pre><code>data$max&lt;-apply(X = data, MARGIN = 1, FUN = max, na.rm = TRUE)
  
  data&lt;-data%&gt;%mutate(variable=ifelse(max&gt;3,1,0))
  </code></pre>
  
  <p>Can we use dplyr?</p>
  
  <pre><code>data&lt;-data%&gt;%mutate(indicator=if_else(vars(contains("DX")),   any_vars(.&gt;=3)) , 1, 0)
  </code></pre>
  
  <p>I got an error message saying that<code>condition</code> must be a logical vector, not a <code>quosures</code> object</p>