title: Formatting tables in R Markdown to export to MS Word document
body: <p>I've started using <a href="https://gdemin.github.io/expss/" rel="nofollow noreferrer">expss</a> in R Markdown for generating tables with the help of Knitr. I would like to automate the tables and analysis for a report I need to prepare in Microsoft Word format. </p>
  
  <p>When knitting to HTML, the tables look wonderful. The tables in Word are displayed as rows of plain text and does not resemble a table. Does expss support exports of tables to Word? Are there instructions on how to do it? </p>
  
  <p>Tables generated with kable and dplyr display correctly in Word. However, I'm struggling to reproduce the HTML tables made with expss. </p>
  
  <pre><code>library(expss)
  data(mtcars)
  mtcars = apply_labels(mtcars,
                        mpg = "Miles/(US) gallon",
                        cyl = "Number of cylinders",
                        disp = "Displacement (cu.in.)",
                        hp = "Gross horsepower",
                        drat = "Rear axle ratio",
                        wt = "Weight (1000 lbs)",
                        qsec = "1/4 mile time",
                        vs = "Engine",
                        vs = c("V-engine" = 0,
                               "Straight engine" = 1),
                        am = "Transmission",
                        am = c("Automatic" = 0,
                               "Manual"=1),
                        gear = "Number of forward gears",
                        carb = "Number of carburetors"
  )
  
  cro(mtcars$am, mtcars$vs)
  </code></pre>
  
  <p>I'm hoping that my Word tables would look like the HTML table examples that could be found at this <a href="http://gdemin.github.io/expss/" rel="nofollow noreferrer">link</a> or in this Image of HTML table example</p>
  
  <p><a href="https://i.stack.imgur.com/a6Ouz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a6Ouz.png" alt="enter image description here"></a></p>
  
  <p>I would also be happy if they look like the the tables in my R Console output</p>
  
  <p><a href="https://i.stack.imgur.com/v0fTp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v0fTp.png" alt="enter image description here"></a></p>
  
  <p>The table output in Word looks like this: </p>
  
  <p>Engine </p>
  
  <p>V-engine </p>
  
  <p>Straight engine </p>
  
  <p>Transmission </p>
  
  <p>Automatic </p>
  
  <p>12</p>
  
  <p>7</p>
  
  <p>Manual </p>
  
  <p>6</p>
  
  <p>7</p>
  
  <p>#Total cases </p>
  
  <p>18</p>
  
  <p>14</p>