79263480

Date: 2024-12-08 22:51:49
Score: 0.5
Natty:
Report link

you can split the table and then render the document with two columns like this:

---
title: "My Table"
format: pdf
    
---

```{r}
#| echo: false
#| warning: false
#| layout-ncol: 2 # leave this part, if you want your subtables below each other :)

library(tidyverse)
library(gt)

ten_wide <- tribble(
  ~a, ~b, ~c, ~d, ~e, ~f, ~g, ~h, ~i, ~j,
  "alpha", "bravo", "charlie", "delta", "echo", "foxtrot", "gulf", "hotel", "india", "juliet",
  "alpha", "bravo", "charlie", "delta", "echo", "foxtrot", "gulf", "hotel", "india", "juliet",
)

gt(ten_wide[, 1:5]) 
gt(ten_wide[, 6:10])

```

which generates: output table

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: G-Man