title: R - knitr:kable - removing individual headers and adding single header on multiple columns
body: <p>R code in Rmarkdown file:</p>
  
  <pre><code>col1 &lt;- c("dummydata","dummydata","dummydata")
  col2 &lt;- c("dummydata","dummydata","dummydata")  
  col3 &lt;- c("dummydata","dummydata","dummydata")
  col4 &lt;- c("dummydata","dummydata","dummydata")
  col5 &lt;- c("dummydata","dummydata","dummydata")
  col6 &lt;- c("dummydata","dummydata","dummydata")
  col7 &lt;- c("dummydata","dummydata","dummydata")
  col8 &lt;- c("dummydata","dummydata","dummydata")
  
  df1 &lt;- data.frame(col1,col2,col3,col4,col5,col6,col7,col8)
  
  kable(df1, format="html",table.attr='class="myTable"') %&gt;%
  kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive")) %&gt;%
  add_header_above(c("Group1" = 2, "Group2" = 2,"Group3" = 2, "Group4" = 2))
  </code></pre>
  
  <p>Output: <a href="https://i.stack.imgur.com/vvd2r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvd2r.png" alt="FlexDashBoard Kable - Dataframe as Table"></a></p>
  
  <p>ISSUE: I only want headers on combined columns i.e. Group1, Group2 etc. And I want to remove headers on individual columns i.e. col1, col2 etc.</p>
  
  <p>Is there any way to do this using dataframe, html/javascript, Rmarkdown or any R package?</p>