title: How to make an anova table with letters for groupwise significant differences in R->latex?
body: <p>Is there a package in R that produces tables like this one:
  <img src="https://i.stack.imgur.com/WvSOm.png" alt="enter image description here">
  Basically, given a dataset of factors and variables, produces a nicely-formatted table with pairwise t-tests and letters indicating significance of differences?</p>
  
  <p>Dummy data:</p>
  
  <pre><code>var = c(rnorm(100,mean=1,sd=2),rnorm(30,mean=-1,sd=2),rnorm(50,mean=0,sd=4))
  factor = as.factor(c(rep(1,100),rep(2,30),rep(3,50))
  </code></pre>
  
  <p>How would I take that dummy data and turn it into (one column of) the example table?</p>