title: adding \label{} in kable kableExtra latex output
body: <p>I am trying to create a latex formatted table in R with a \label{} option.</p>
  
  <p>Something similar to </p>
  
  <pre><code>library(tidyverse)
  library(knitr)
  library(kableExtra)
  
  data_frame(a = 1:3, b = 2:4) %&gt;% 
    kable(align = 'c', format = 'latex') %&gt;% 
    kable_styling(full_width = FALSE)
  </code></pre>
  
  <p>the resulting output is below, but i would like to add the \label{label_value} parameter to the latex table with a label_value I can define</p>
  
  <pre><code>\begin{table}[H]
  \centering
  \begin{tabular}{c|c}
  \hline
  a &amp; b\\
  \hline
  1 &amp; 2\\
  \hline
  2 &amp; 3\\
  \hline
  3 &amp; 4\\
  \hline
  \end{tabular}
  \end{table}
  </code></pre>
  
  <p>I am trying to automatically create tables in R which I can save and then include in a latex document</p>