title: how to filter a list in R
body: <p>I have a list that I want to filter.</p>
  
  <pre><code>[[100]][[1]]$total
  [1] 7
  
  
  [[100]][[2]]
  [1] 7
  
  [[100]][[3]]
  [1] 25082.66
  </code></pre>
  
  <p>this is the output I get from my script, I am trying to filter all elements from this list where total = 7. I have a total of 100 elements.</p>
  
  <p>my list is labelled as sorts</p>
  
  <pre><code> A&lt;-(list.filter(sorts,total&gt;6)) 
  </code></pre>
  
  <p>I want to have a list with only elements where total is 7</p>