For Loop for Creating Multiple Tables using knitr and kableExtra packages in RMarkdown
问题 I need to create multiple tables in RMarkdown and style it with the kableExtra package. As an example, I have the iris dataset. My first table displays the first 20 rows, my second table the next 20 rows, and my third table next 20 rows... Below is the code: --- title: "" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ```{r} library(knitr) library(kableExtra) landscape(kable_styling(kable(iris[1:20, ], format = "latex", align = "c", row.names =