title: inserting stargazer or xable table into knitr document
body: <pre><code>&gt; dput(head(t))
  structure(list(Team = structure(c(1L, 1L, 1L, 1L, 1L, 1L), .Label = "Union", class = "factor"), 
      Date = structure(c(1L, 1L, 1L, 2L, 2L, 2L), .Label = c("2012-01-06", 
      "2012-02-06", "2012-03-06", "2012-04-06", "2012-05-06", "2012-07-06", 
      "2012-09-06", "2012-10-06", "2012-11-06", "2012-12-06"), class = "factor"), 
      STime = structure(c(1L, 1L, 1L, 1L, 1L, 1L), .Label = "07:03", class = "factor"), 
      ETime = structure(c(6L, 7L, 8L, 5L, 5L, 1L), .Label = c("01:13", 
      "03:13", "06:13", "09:13", "10:13", "11:13", "12:13", "13:13", 
      "15:13", "16:13", "18:13"), class = "factor")), .Names = c("Team", 
  "Date", "STime", "ETime"), row.names = c(NA, 6L), class = "data.frame")
  </code></pre>
  
  <p>I would like to be able to use either stargazer or xtable to put this data frame <code>t</code> in the table format in knitr. I am new to knitr, I can create graphs, etc. but am unable to successfully put tables to knitr document.</p>
  
  <p>My test.rnw file looks like this so far:</p>
  
  <pre><code>\documentclass[11pt]{article}
  \begin{document}
  
  &lt;&lt;setup, echo = FALSE, results= 'hide', message = FALSE&gt;&gt;=
  data(mtcars)
  
  library(ggplot2)
  qplot(speed, dist, data = cars) + geom_smooth()
  @
  
  \end{document}
  </code></pre>
  
  <p>How would I insert a stargazer table into this document to display the contents of the <code>t</code> data frame?</p>