title: Error in UseMethod("cld") : no applicable method for 'cld' applied to an object of class "c('emm_list', 'list')"
body: <p>Trying to run the </p>
  
  <pre><code>cld(posthoc, alpha=.05, Letters=letters)
  </code></pre>
  
  <p>code to get letter values for my data, but producing this error:</p>
  
  <p>Error in UseMethod("cld") : 
    no applicable method for 'cld' applied to an object of class "c('emm_list', 'list')"</p>
  
  <p><a href="https://i.stack.imgur.com/89C5g.png" rel="nofollow noreferrer">arcdata</a></p>
  
  <p>Code as follows</p>
  
  <pre><code>install.packages("car")
  arcdata&lt;- read.csv(file.choose()) 
  arcdata
  dput(arcdata)
  str(arcdata)
  library(ggpubr)
  plot&lt;- ggline(arcdata, x="preg", y="arc", color = "herd",
      add =c("mean_se", "dotplot"), palette= c("#00AFBB", "#E7B800"))
  plot
  
  
  model1&lt;-lm(arc~herd*preg, data = arcdata)
  anova(model1)
  
  plot(model1, 2)
  
  aov_residuals&lt;-residuals(object = model1)
  shapiro.test(aov_residuals)
  
  
  plot(model1, 1)
  leveneTest(arc~herd*preg, data= arcdata)
  
  install.packages("lsmeans")
  install.packages("multcompView")
  library("lsmeans")
  library("multcompView")
  
  posthoc&lt;-lsmeans(model1, pairwise~herd*preg, adjust="tukey")
  posthoc
  
  cld(posthoc, 
      alpha=.05,
      Letters=letters)
  
  </code></pre>
  
  <p>The last (cld) section of the code is not producing expected letter groups, is it possibly something to do with the alpha=.05?</p>