title: How to set automatic output format of all my tables in Rmarkdown?
body: <p>I am writing an Rmarkdown document with plenty of tables, and I want them in a decent format, e.g. kable. however I don't want to format them one by one. Is there any easy way to knit the document such that the output format of every table would be kable style?</p>
  
  <p>For example, I have created the following data frame in <code>dplyr</code></p>
  
  <pre><code>data2 %&gt;% 
    group_by(uf) %&gt;% 
    summarise(n = n(), ) %&gt;% arrange(desc(n))
  </code></pre>
  
  <p>And I just want that query to have a <code>kable</code> style automatically, avoiding giving a name to the query and avoiding the kable function over that name. Why do I want it like this? Because of my document has hundreds of these <code>dplyr</code> queries and I need a faster way to knit the document. </p>
  
  <p>Thanks!</p>