title: Delete empty dataframes from List
body: <p>Have this following dataframe's List which I'm working with inside a for Loop. Here I have two empty dataframes, x[[2]] and x[[4]]. How can I remove then inside my for loop, let's say, if I do:</p>
  <pre><code>for (i in 1:length(x)){
   ****x[[i]] = ***remove empty dataframes in x[[i]]***
  }
  </code></pre>
  <p>DATASET:</p>
  <pre><code>    x &lt;- list(structure(list(`8935364000175` = c(0.0060428512369981, 0.00603116477577714, 
  0.00601948031544453, 0.00584680183237651, 0.00588356233492959, 
  0.00604482211201685, 0.00595391284150537, 0.00612897711107507, 
  0, 0.00608207737968769), `25079578000106` = c(0.0561319890039158, 
  0.0713528263077023, -0.310352321776008, 0.244770088829682, 0.0361304175385158, 
  -0.215327063233417, -0.0463209246845508, 0, 0.0781647175244871, 
  0.0306871725115343)), row.names = c(&quot;Retorno D - 260&quot;, &quot;Retorno D - 259&quot;, 
  &quot;Retorno D - 258&quot;, &quot;Retorno D - 257&quot;, &quot;Retorno D - 256&quot;, &quot;Retorno D - 255&quot;, 
  &quot;Retorno D - 254&quot;, &quot;Retorno D - 253&quot;, &quot;Retorno D - 252&quot;, &quot;Retorno D - 251&quot;
  ), class = &quot;data.frame&quot;), structure(list(), row.names = c(&quot;Retorno D - 260&quot;, 
  &quot;Retorno D - 259&quot;, &quot;Retorno D - 258&quot;, &quot;Retorno D - 257&quot;, &quot;Retorno D - 256&quot;, 
  &quot;Retorno D - 255&quot;, &quot;Retorno D - 254&quot;, &quot;Retorno D - 253&quot;, &quot;Retorno D - 252&quot;, 
  &quot;Retorno D - 251&quot;), class = &quot;data.frame&quot;), structure(list(`25079578000106` = c(-0.0284871479379945, 
  0.141976900522423, -0.115634388475883, 0.0858369759953348, 0.252102295598888, 
  -0.130994651044603, 0.213179273123387, 0, 0.254748840234242, 
  -0.162688137697842), `19107923000175` = c(-2.542040795106, -1.30722252988562, 
  0.166101507966232, -0.333577277251607, -0.48391700402135, -0.287302340893802, 
  0.276978237343428, 0, -2.20114477424431, 2.28636453339277), `15674503000110` = c(0.151917711446004, 
  0.27261553095741, -0.0217761778003478, 0.0357082184564206, 0, 
  -0.430589756888367, 0.0980497330601793, 0.162832113528566, 0.135437075368827, 
  0.0254803373536561), `19391009000107` = c(0.118515970461885, 
  0.0201793494852609, 0.05212900123297, -0.122335026844667, 0, 
  -0.173768502372695, -0.146583881632978, -0.102553665146843, -0.161486374236119, 
  0.522601667762501), `26111809000184` = c(0.188357122169691, 0.597206398924754, 
  -0.117262560343079, -0.350788641299005, 0, -0.427825340193522, 
  0.0359309879058856, 0.144902896136045, 0.43725947070925, 0.0456868876426597
  ), `32666326000149` = c(1.84565666459093, 3.33521612974437, -0.706821796120494, 
  -1.41998375802359, 0, -1.00702592444577, -0.764259576953918, 
  0.504494091364904, 2.34908743768756, 1.12513038984616)), row.names = c(&quot;Retorno D - 260&quot;, 
  &quot;Retorno D - 259&quot;, &quot;Retorno D - 258&quot;, &quot;Retorno D - 257&quot;, &quot;Retorno D - 256&quot;, 
  &quot;Retorno D - 255&quot;, &quot;Retorno D - 254&quot;, &quot;Retorno D - 253&quot;, &quot;Retorno D - 252&quot;, 
  &quot;Retorno D - 251&quot;), class = &quot;data.frame&quot;), structure(list(), row.names = c(&quot;Retorno D - 260&quot;, 
  &quot;Retorno D - 259&quot;, &quot;Retorno D - 258&quot;, &quot;Retorno D - 257&quot;, &quot;Retorno D - 256&quot;, 
  &quot;Retorno D - 255&quot;, &quot;Retorno D - 254&quot;, &quot;Retorno D - 253&quot;, &quot;Retorno D - 252&quot;, 
  &quot;Retorno D - 251&quot;), class = &quot;data.frame&quot;))
  </code></pre>