title: How do I print values in a list that are greater than a certain number along with the row name in R?
body: <p>I am painfully new to R. I have a list of data, and I wrote a loop to find which values are greater than a certain number:</p>
  
  <pre><code>for (i in listname){
      if(i &gt; x)
      print(i)
  }
  </code></pre>
  
  <p>I would like for the printed values to also include the row name... how would I go about doing that?
  Thanks for your patience.</p>