title: Citing within an RMarkdown table
body: <p>I am attempting to create a table which has citations built into the table. Here is a visual of what I am trying to achieve.</p>
  
  <p><img src="https://imgur.com/687GZ5a.png" alt="desired output"></p>
  
  <p>As far as I know you can only add footnotes in <code>rowvars</code> or <code>colvars</code> in <code>kableExtra</code> (love that package). </p>
  
  <pre><code># Create a dataframe called df
  Component &lt;- c('N2','P3')
  Latency &lt;- c('150 to 200ms', '625 to 800ms')
  Location &lt;- c('FCz, Fz, Cz', 'Pz, Oz')
  df &lt;- data.frame(Component, Latency, Location)
  </code></pre>
  
  <p>Below is my attempt after reading through <code>kableExtra</code>'s Git page</p>
  
  <pre><code># Trying some code taken from the kableExtra guide
  row.names(df) &lt;- df$Component
  df[1] &lt;- NULL
  dt_footnote &lt;- df
  names(dt_footnote)[1] &lt;- paste0(names(dt_footnote)[2],
                                  footnote_marker_symbol(1))
  
  row.names(dt_footnote)[2] &lt;- paste0(row.names(dt_footnote)[2], 
                                  footnote_marker_alphabet(1))
  kable(dt_footnote, align = "c", 
        # Remember this escape = F
        escape = F, "latex", longtable = T, booktabs = T, caption = "My Table Name") %&gt;%
    kable_styling(full_width = F) %&gt;%
    footnote(alphabet = "Jones, 2013",
             symbol = "Footnote Symbol 1; ",
             footnote_as_chunk = T)
  </code></pre>
  
  <p><img src="https://i.imgur.com/S7rf8GY.png" alt="Output"></p>
  
  <p>But this code only works on the headers. The ultimate goal would be if I could use a BibTex reference such as <code>@JonesFunctionalMixedEffectModels2013</code> such that the final part of the code would look like</p>
  
  <pre><code>footnote(alphabet = @davidsonFunctionalMixedEffectModels2009,
             symbol = "Footnote Symbol 1; ", footnote_as_chunk = T)
  </code></pre>
  
  <p>Anyone have any ideas?</p>
  
  <p>Thanks</p>