title: filter rows when all columns greater than a value
body: <p>I have a data frame and I would like to subset the rows where all columns values meet my cutoff. </p>
  
  <p>here is the data frame:</p>
  
  <pre><code>   A B C
  1  1 3 5
  2  4 3 5
  3  2 1 2
  </code></pre>
  
  <p>What I would like to select is rows where all columns are greater than 2.
  Second row is what I want to get. </p>
  
  <pre><code>[1] 4 3 5
  </code></pre>
  
  <p>here is my code: </p>
  
  <pre><code> subset_data &lt;- df[which(df[,c(1:ncol(df))] &gt; 2),]
  </code></pre>
  
  <p>But my code is not applied on all columns.
  Do you have any idea how can I fix this. </p>