Quantcast
Viewing all articles
Browse latest Browse all 106

How do I display multiple kable tables in a m x n grid?

I have 6 tables and I want them to display 3 x 2 in a grid. I have been using Kable to display my tables, which has worked fairly well for me, but when I pass tables into kables as a list it only displays them horizontally.

As an example using the following code:

t1 <- mtcars[1:3,]t2 <- mtcars[4:6,]t3 <- mtcars[7:9,]t4 <- mtcars[10:12,]t5 <- mtcars[13:15,]t6 <- mtcars[16:18,]kable(list(t1,t2,t3,t4,t5,t6)) %>% kable_styling()

All 6 tables go horizontally in a row. Is there a way to stack these 3 x 2 on top of each other?


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>