1

Am I missing something to do this with gt()?

enter image description here

Seems straight forward but the closest answer I find still references it's own cell. I would like to stick with gt() if possible as ALL my other tables use it and I would like to have some consistency between reports.

dat <- data.frame(obs1 = LETTERS[1:5],
                  value1 = 1:5,
                  obs2 = LETTERS[6:10],
                  value2 = 5:1)

dat |>
  gt() |>
  ???
seansteele
  • 619
  • 3
  • 10
  • 1
    See linked post, we need *data_color*: `dat |> gt() |> data_color(columns = "value1", target_columns = "obs1") |> data_color(columns = "value2", target_columns = "obs2")` – zx8754 May 27 '23 at 19:09
  • 1
    I spent the last hour searching for an answer and knew it had to be out there somewhere. Thanks! – seansteele May 27 '23 at 19:15

0 Answers0