title: Extracting columns having greater than certain values in R dataframe
body: <p>I have a dataframe:</p>
  
  <pre><code>Alix    Blim    Jux Gyno
  0.105   0.234   0.67    0.89
  0.01    0.542   0.11    0.65
  0.003   0.002   0.6     0.67
  0.009   0.123   0.09    0.01
  </code></pre>
  
  <p>From the above dataframe, I will like to extract all columns having values greater than 0.6 as below:</p>
  
  <pre><code>Jux Gyno
  0.67    0.89
  0.11    0.65
  0.6     0.67
  0.09    0.01
  </code></pre>
  
  <p>Here's my code that didn't work:</p>
  
  <pre><code>out &lt;- vector()
  
  for(i in colnames(df){
    if(df[i] &gt; 0.6){
       T &lt;- df[,i]
    }
    out &lt;- cbind.data.frame(out,T)
  }
  </code></pre>
  
  <p>I got an error like:</p>
  
  <pre><code>Error in data.frame(Check.names= F...). Argument imply differing number of rows.....
  </code></pre>