title: How to remove elements from a list?
body: <p>Although the title looks easy, I have not found an answer here on StackOverflow.
  My problem is: I have a list of some elements. And each elemnt of the list also contains a list filled with some strings. That list inside list contains values that are empty (''), not null. I would like to remove the rows inside that list that are empty. How one can do it? I guess lapply would do the trick but I am not sure how to use it there.</p>
  
  <p>Would be grateful for an advice! Thanks a lot!</p>
  
  <p>EDIT:
  So my output looks like this</p>
  
  <pre><code>$'1'
  1 text1
  2 text2
  3
  4 text3
  5 text4
  
  $'2'
  1 text1
  2
  3 text2
  4
  5 text3
  </code></pre>
  
  <p>My goal is to delete those rows that are empty so that it looked like this:</p>
  
  <pre><code>$'1'
  1 text1
  2 text2
  3 text3
  4 text4
  
  $'2'
  1 text1
  2 text2
  3 text3
  </code></pre>