title: KableExtra html table not collapsing rows
body: <p>I have a simple Table that I want to visualize in an html format using kableExtra. This table has a few repeated cells in the first column and I would like to collapse these cells into one. Only problem is that the package isn't letting me do that. How can I solve this?</p>
  <p>This is my data:</p>
  <pre><code>df &lt;- data.frame( Vegitation  = c(&quot;Tree&quot;, &quot;Tree&quot;, &quot;Tree&quot; , &quot;Fruit&quot;, &quot;Fruit&quot;, &quot;Water&quot;),
                Non_sense_var1 = c(17,14,1,20,21,0),
                Non_sense_var2 = c(15,1,11,2,2.1,60),
                Non_sense_var3 = c(4,6,14,2,7,7)
                )
  </code></pre>
  <p>And this is the code for my table:</p>
  <pre><code>header_line &lt;- c(&quot;Vegitation&quot;, &quot;Value 1&quot;, &quot;Value 2&quot;, &quot;Value 3&quot;)
  
  
  
  kbl(df, escape = F, align = 'lcccc')%&gt;%
  add_header_above( header_line, bold = T, line = F, font_size = 11) %&gt;%
  kable_styling(full_width = T, font_size = 10, html_font = 'arial') %&gt;%
  kable_classic() %&gt;%
  column_spec(1, width = &quot;2.2cm&quot;, bold = TRUE ) %&gt;%
  column_spec(2, width = &quot;2.2cm&quot;) %&gt;%
  column_spec(c(3:4), width = &quot;2.2cm&quot;,  color = '#FF7F0E') %&gt;%
  collapse_rows(1, valign = &quot;top&quot;) 
  </code></pre>
  <p>And when I try to run this code, this is what I get:</p>
  <p><a href="https://i.stack.imgur.com/Ru7Zn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ru7Zn.png" alt="enter image description here" /></a></p>