Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 105

Scale kable table to fit page width

$
0
0

How do you format a table in pdf using kable function? Because my output table width exceeds the width of the pdf. Here is an example:

---output: pdf_document---```{r}df <- cbind(mtcars[1:5,], mtcars[1:5,])knitr::kable(df)```

enter image description here


Viewing all articles
Browse latest Browse all 105

Trending Articles



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