kableextra

Prevent pagebreak in kableExtra landscape table

偶尔善良 提交于 2021-01-26 17:31:58
问题 How can a landscape table be plotted in R Markdown (PDF output) without causing a page break to be inserted? There is the function landscape from the kableExtra package, but this forces a page break to be inserted. Example: The normal behaviour for tables in R Markdown is that the will float to minimise the breaking up of text. --- output: pdf_document --- Some Text ```{r, echo=F, warning=F} library(kableExtra) knitr::kable(mtcars, format = "latex", caption = "A table") ``` More Text

Prevent pagebreak in kableExtra landscape table

荒凉一梦 提交于 2021-01-26 17:28:00
问题 How can a landscape table be plotted in R Markdown (PDF output) without causing a page break to be inserted? There is the function landscape from the kableExtra package, but this forces a page break to be inserted. Example: The normal behaviour for tables in R Markdown is that the will float to minimise the breaking up of text. --- output: pdf_document --- Some Text ```{r, echo=F, warning=F} library(kableExtra) knitr::kable(mtcars, format = "latex", caption = "A table") ``` More Text

Prevent pagebreak in kableExtra landscape table

我的未来我决定 提交于 2021-01-26 17:22:59
问题 How can a landscape table be plotted in R Markdown (PDF output) without causing a page break to be inserted? There is the function landscape from the kableExtra package, but this forces a page break to be inserted. Example: The normal behaviour for tables in R Markdown is that the will float to minimise the breaking up of text. --- output: pdf_document --- Some Text ```{r, echo=F, warning=F} library(kableExtra) knitr::kable(mtcars, format = "latex", caption = "A table") ``` More Text

kableExtra: short.caption argument not working if creating table from list or using list of dataframes

﹥>﹥吖頭↗ 提交于 2021-01-25 01:49:10
问题 The goal is to include a kableExtra table in a PDF/HTML report generated with Rmarkdown/bookdown. The short.caption argument allows displaying a shortened version of the caption in the list of tables. When generating a kableExtra table from a list or a list of dataframes, the short.caption argument does not function anymore. The long caption is shown in the list of tables of the PDF report. Also, using markdown expressions like **BOLD** do not work in the titles either. ```{r CHUNK, echo

kableExtra: short.caption argument not working if creating table from list or using list of dataframes

…衆ロ難τιáo~ 提交于 2021-01-25 01:47:40
问题 The goal is to include a kableExtra table in a PDF/HTML report generated with Rmarkdown/bookdown. The short.caption argument allows displaying a shortened version of the caption in the list of tables. When generating a kableExtra table from a list or a list of dataframes, the short.caption argument does not function anymore. The long caption is shown in the list of tables of the PDF report. Also, using markdown expressions like **BOLD** do not work in the titles either. ```{r CHUNK, echo

kableExtra: short.caption argument not working if creating table from list or using list of dataframes

六月ゝ 毕业季﹏ 提交于 2021-01-25 01:44:42
问题 The goal is to include a kableExtra table in a PDF/HTML report generated with Rmarkdown/bookdown. The short.caption argument allows displaying a shortened version of the caption in the list of tables. When generating a kableExtra table from a list or a list of dataframes, the short.caption argument does not function anymore. The long caption is shown in the list of tables of the PDF report. Also, using markdown expressions like **BOLD** do not work in the titles either. ```{r CHUNK, echo

Multiple Kable Tables with Images

℡╲_俬逩灬. 提交于 2021-01-24 05:45:36
问题 I'm trying to create multiple tables using kable from a csv file, but the requirement is that I need to also put an image in the table as per the below image. The entire image needs to be in the left column. Is this possible? The dataframe looks like this: df<-data.frame(Amount= c('$25', '$45', '$75'), Rate = c('1%', '1%', '3%'), Location = c('Germany', 'Switzerland', 'England'), ImageName= c('GE.png', 'BE.png', 'CE.png'), Status = c('Sold','Unsold','Sold') ) So far my R code is --- output:

Multiple Kable Tables with Images

牧云@^-^@ 提交于 2021-01-24 05:45:18
问题 I'm trying to create multiple tables using kable from a csv file, but the requirement is that I need to also put an image in the table as per the below image. The entire image needs to be in the left column. Is this possible? The dataframe looks like this: df<-data.frame(Amount= c('$25', '$45', '$75'), Rate = c('1%', '1%', '3%'), Location = c('Germany', 'Switzerland', 'England'), ImageName= c('GE.png', 'BE.png', 'CE.png'), Status = c('Sold','Unsold','Sold') ) So far my R code is --- output:

Multiple Kable Tables with Images

二次信任 提交于 2021-01-24 05:45:15
问题 I'm trying to create multiple tables using kable from a csv file, but the requirement is that I need to also put an image in the table as per the below image. The entire image needs to be in the left column. Is this possible? The dataframe looks like this: df<-data.frame(Amount= c('$25', '$45', '$75'), Rate = c('1%', '1%', '3%'), Location = c('Germany', 'Switzerland', 'England'), ImageName= c('GE.png', 'BE.png', 'CE.png'), Status = c('Sold','Unsold','Sold') ) So far my R code is --- output:

R Markdown table caption width with kable and longtable

邮差的信 提交于 2021-01-01 06:05:13
问题 Using R Markdown to output a pdf. kable() works great but when I add longtable=T the caption no longer extends the full width of the table. I can't seem to find an argument that will control the caption details here. I can move the caption to be output for each code chunk but would rather use the built in functionality within kable if possible. Thanks! --- title: "test" author: "" date: "September 6, 2017" output: pdf_document: latex_engine: xelatex --- ```{r setup, include=FALSE} knitr::opts