79764919

Date: 2025-09-15 08:49:25
Score: 5
Natty:
Report link

Thank you for the example @Vincent. However, when I run the code (a year later after the example was posted), the table float environment ist back (see below). Has something changed, is there something I need to change?

> m1 <- lm(mpg ~ hp, data = mtcars)
> m2 <- lm(mpg ~ drat, data = mtcars)
> m3 <- lm(mpg ~ wt, data = mtcars)
> modelsummary(list(
+   "(A)"=m1, 
+   "(B)"=m2,
+   "(C)"=m3)) |>
+   group_tt(j = list("Text" = 1, "More Text" = 2, "Some Other Text" = 3:4)) |>
+   theme_tt("tabular") |>
+   print("latex")
\begin{table}
\centering
\begin{tblr}[         %% tabularray outer open
]                     %% tabularray outer close
{                     %% tabularray inner open
colspec={Q[]Q[]Q[]Q[]},
column{4}={}{halign=c,},
cell{1}{1}={}{halign=l, halign=c,},
cell{1}{2}={}{halign=c, halign=c,},
cell{1}{3}={c=2,}{halign=c, halign=c,},
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Vincent
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: umor