Mr Frog
Mr Frog

Reputation: 446

How can I create a table with multiple panels in R Markdown?

Imagine I have two tables similar to

tableA = data.frame(a = c(1, 2, 3), b = c(2, 3, 4))
tableB = data.frame(a = c(5, 6, 7), b = c(1, 8 , 9))
list(tableA, tableB) |> kable()

How can I get the two tables stacked one on top of the other with a title indicating the Panel A or B and the headers used once for both tables at the top of both?

Upvotes: 0

Views: 84

Answers (0)

Related Questions