title: r - rmarkdown - render list of dataframes
body: <p>Is it possible to render a list of data frames in a markdown document as individual tables?</p>
  
  <p><strong>Example</strong></p>
  
  <p>Given the code chunk</p>
  
  <pre><code>```{r listOfDf}
  
  library(knitr)
  
  df &lt;- data.frame(a=rnorm(10),b=rnorm(10),c=c(rep("a",5), rep("b",5)))
  l_df &lt;- split(df, df$c)
  
  kable(l_df)
  
  ```
  </code></pre>
  
  <p>This outputs</p>
  
  <p><img src="https://i.stack.imgur.com/yzGFH.png" alt="l_df_output"></p>
  
  <p>But I would like something closer to that given in the R console:</p>
  
  <pre><code>&gt; l_df
  $a
             a          b c
  1  1.2869909 -0.3117932 a
  2  1.4621792  1.2826924 a
  3 -0.4274641  0.3335532 a
  4  0.7882973 -1.1966702 a
  5 -1.2086910  0.1549691 a
  
  $b
              a         b c
  6  -0.9460508 1.4679430 b
  7   0.6580554 0.5806850 b
  8  -0.7103335 2.6036176 b
  9  -2.0110167 2.0488055 b
  10  0.7691045 0.3652907 b
  </code></pre>
  
  <p>But that is also rendered as a table(s) (hence the use of <code>kable()</code>)</p>
  
  <p>I've tried a loop*</p>
  
  <pre><code>for(i in 1:length(l_df)){
    kable(l_df[i])
  }
  </code></pre>
  
  <p>but that doesn't work either (*but it does work for graphs)</p>