title: Error when trying to find estimated marginal means in r
body: <p>Im trying to do find the Estimated Marginal Means of some data but keep getting an error message.</p>
  <pre><code># Pairwise comparisons
  library(emmeans)
  
  pwc &lt;- df1 %&gt;%  emmeans_test(Y ~ C, covariate = M,
      p.adjust.method = &quot;bonferroni&quot;)
  </code></pre>
  <p>returns</p>
  <pre><code>&gt; # Pairwise comparisons
  &gt; library(emmeans)
  &gt; pwc &lt;- df1 %&gt;% 
  +   emmeans_test(
  +     Y ~ C, covariate = M,
  +     p.adjust.method = &quot;bonferroni&quot;
  +   )
  Error: Column name `std.error` must not be duplicated.
  Run `rlang::last_error()` to see where the error occurred.
  </code></pre>
  <p>yet there is no duplicated column. None of my columns are named std.error
  <a href="https://i.stack.imgur.com/eIXbU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eIXbU.png" alt="enter image description here" /></a></p>
  <p>checking for errors shows this</p>
  <pre><code>█
  ├─&lt;error/tibble_error_column_names_must_be_unique&gt;
  │ Column name `std.error` must not be duplicated.
  └─&lt;error/vctrs_error_names_must_be_unique&gt;
    Names must be unique.
  Backtrace:
    1. df1 %&gt;% emmeans_test(Y ~ C, covariate = M, p.adjust.method = &quot;bonferroni&quot;)
    5. tibble::add_column(., std.error = std.error, .after = &quot;estimate&quot;)
    6. tibble:::set_repaired_names(out, .name_repair)
    8. tibble:::repaired_names(...)
   11. vctrs::vec_as_names(...)
   13. vctrs:::validate_unique(names = names, arg = arg)
   14. vctrs:::stop_names_must_be_unique(names, arg)
   15. vctrs:::stop_names(...)
   16. vctrs:::stop_vctrs(class = c(class, &quot;vctrs_error_names&quot;), ...)
  Run `rlang::last_trace()` to see the full context.
  </code></pre>