kableextra Questions

0

I am trying to print a data.frame in a pdf using kable and collapse_rows functions. And it did not manage to make it works. Please try the following reprex: --- title: "Example" output: bookdown:...
Birdsong asked 17/6, 2020 at 0:23

1

Solved

I am using kableExtra for longtable with the following code. library(knitr) library(kableExtra) long_dt <- rbind(mtcars, mtcars) kable( long_dt, format = "latex", longtable = T, bookt...
Enthronement asked 16/9, 2017 at 6:51

1

Solved

The vertical scrollbar generated with kableExtra works in RStudio but doesn't work in the knitted html_document. Example Take the following Rmd file --- output: html_document --- ```{r setup, ...
Contort asked 22/4, 2020 at 21:58

2

Solved

Is it possible to format captions in kableExtra? I would like to center and bold a caption for a table when knitting to HTML in RMarkdown. I have tried to wrap the table in a CSS div where the text...
Bradybradycardia asked 24/9, 2019 at 20:48

0

Below is a code example. My issue is that the background color for the rows with the linebreak are being cut short. Any idea how to fix this? I tried limiting the column width and that did the tric...
Bite asked 5/2, 2020 at 20:23

1

I would like to include a table in an R markdown document (Bookdown/Huskydown) which should meet the following requirements. Ideally, the table works with several output formats, e.g. LaTex/PDF and...
Laurentium asked 4/2, 2020 at 13:40

1

Solved

I am trying to use kable and kableextra to create a table that has different grouped headers but the same column names in the sub-headers For example, if you look at the section "Grouped Columns/H...
Sweetie asked 25/10, 2019 at 20:12

1

I would like to include a table with 2 columns including images and text (image descriptions) in PDF report compiled with R markdown. In doing so, I have the following requirements for my table: ...
Ammonic asked 2/10, 2019 at 15:6

2

I would like to create a pdf with rmarkdown. The PDF should contain a table. The table should have a dynamic column label. The tabhead should display the calendar week. However, the calendar week...
Possessory asked 20/7, 2017 at 6:32

4

Solved

Background I am trying to make a rmarkdown document that is rendered using render(). The render call has two elements that are parameterized: I would like the user to be able to specify pdf or h...
Ludlow asked 6/9, 2017 at 17:7

4

I am attempting to output a latex table using r markdown, kable and kableExtra. I get an error in the table rendering code that is not part of the latex code produced by R. The code: outTab <...
Masque asked 7/12, 2017 at 22:27

2

Solved

kable(head(mtcars) %>% kable_styling(bootstrap_options = c("striped", "hover")) A normal R Markdown document, utilizing a kable table (see above), is quite striking and looks like this: Ho...
Topper asked 27/3, 2019 at 18:55

1

Solved

--- title: "Untitled" output: powerpoint_presentation --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ## Table ```{r table, echo=FALSE, message=FALSE, warning=FALSE} libr...
Oporto asked 15/4, 2019 at 15:6

1

I am using xaringan to create an html presentation, which includes some tables generated using kable(). Unfortunately, these tables are quite narrow, so I'd like to use the full_width option in kab...
Bonar asked 23/3, 2019 at 22:55

2

Solved

library(kableExtra) library(tibble) MWE dataset (group = grouping variable) tib <- tibble(group = c("a", "a", "b", "c", "c", "c"), v...
Coconut asked 26/3, 2019 at 9:16

1

I need to be able to reduce or simplify the numbers in this table. I want only up to 4 decimal places shown and if possible only integers if the number is a whole number. How would I accomplish t...
Convocation asked 10/3, 2019 at 22:48

1

Solved

I try to indent cells of the 2nd column of a dataframe using the kableExtra-package for RMarkdown. It seems add_indent() only works for the first column, therefore does not change anything in my ta...
Hemline asked 26/2, 2019 at 16:56

1

Solved

Is there an easy to use way to setup custom default kable() options, so that there is no need in rewriting them for each kable() call. For example, my usual table styling uses following code: li...
Libidinous asked 13/1, 2019 at 11:48

1

Solved

I would like to add a horizontal line under one of the rows in my kableextra table. The parameter hline_after for row_spec function is supposed to add the horizontal line under the row: row_spec do...
Bennie asked 6/12, 2018 at 16:42

1

Solved

I want to insert a linebreak into a cell of text but can't. In the example below, I want to insert a linebreak between the string group 1.1 and group1.2 I tried to read the documentation ("Best Pr...
Marc asked 20/11, 2018 at 13:34

1

Solved

I am using the following template --- title: "Nice try buddy" author: "SpaceMan" date: "13 December 2057" output: bookdown::pdf_document2 header-includes: - \usepackage{booktabs} - \usepackage{lo...
Kilroy asked 23/9, 2018 at 3:39

1

Solved

I have a table that I am creating for a pdf presentation using kable and kableExtra. I am wanting to group the rows and I need to use superscripts in the row group labels. I have tried several diff...
Propolis asked 29/8, 2018 at 5:59

3

Solved

I would like include a wider table in a two column LaTeX article. This could be achieved in LaTeX using \begin{table*} ... \end{table*} instead of \begin{table} ... \end{table}. How can I tell the...
Zitella asked 5/5, 2018 at 14:29

1

Solved

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 2...
Counterfoil asked 5/8, 2018 at 17:31

1

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 bre...
Bennir asked 1/8, 2018 at 12:33

© 2022 - 2024 — McMap. All rights reserved.