title: Adjusting width of tables made with kable() in RMarkdown documents
body: <p>Is it possible to adjust the width of columns when making tables with the kable() function in knitr?</p>
  
  <p>A chunk like this for a table with two columns produces a table that takes up the entire width of the document.  I'd like to make the columns narrower.  <strong>Can this be done with kable() or is another package needed?</strong></p>
  
  <p>This rmarkdown chunk</p>
  
  <pre><code>```{r}
  df &lt;- data.frame(x = 1:10,
             y = 11:20)
  library(knitr)
  kable(df)
  ```
  </code></pre>
  
  <p>Produces this table
  <a href="https://i.stack.imgur.com/47NRJ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/47NRJ.jpg" alt="enter image description here"></a></p>
  
  <p>Aligning left with <code>kable(df, align = "l")</code> helps a little but I'd like the two columns adjacent to each other.  </p>