title: How to generate a summary table (flextable) for r-markdown from irr output?
body: <p>I have run 3 different Kappa2 analysis using the irr package.</p>
  <pre><code>library(irr)
  
  data(&quot;diagnoses&quot;, package = &quot;irr&quot;)
  
  # Analysis 1
  kappa2(diagnoses[, c(&quot;rater1&quot;, &quot;rater2&quot;)], weight = &quot;unweighted&quot;)
  
  # Analysis 2
  kappa2(diagnoses[, c(&quot;rater1&quot;, &quot;rater3&quot;)], weight = &quot;unweighted&quot;)
  
  # Analysis 3
  kappa2(diagnoses[, c(&quot;rater3&quot;, &quot;rater2&quot;)], weight = &quot;unweighted&quot;)
  </code></pre>
  <p>Is there a good way to generate summary of the output as presentation table (flextable if possible) for r markdown?.
  I`m looking for a table with:
  Analysis 1, Analysis 2, and Analysis 3 as rows.
  Subjects, Raters, Kappa, z and p-value as columns.</p>