1

I am trying to fit a fairly large table on a pdf page using Rmarkdown. The table is too large for one page, but scale_down isn't working. I know from Scale kable table to fit page width that I can scale down the width. How do I force this table to fit on one page. The object m, has 64 rows, and currently only ~50 are being printed.

enter image description here

---
title: "Untitled"
date: "`r format(Sys.time(), '%B %d, %Y')`"
output: 
  pdf_document: default
  html_document: default
---

```{r setup, include=FALSE}

library(knitr)
library(rmarkdown)
library( kableExtra )

m <- rbind( mtcars, mtcars)
m$rows<- 1:nrow( m )


outfinish3 <- knitr::kable( m , format = 'latex',  align = 'c' , booktabs=TRUE) %>% 
 kable_styling(latex_options = c("scale_down")) 

```

`r outfinish3 `
MatthewR
  • 2,494
  • 5
  • 22
  • 33

1 Answers1

1

Not entirely sure how to scale it down, but you could split it into two tables.

[https://stackoverflow.com/a/44490399/10821503][1]

Kendal
  • 117
  • 1
  • 9