Quantcast
Browsing all 106 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Two column headers with same borders

I'd love to have consistent borders on my kable tableHere's my data frame:df1 <- data.frame(inst = c("A", "B", "C", "D", "E", "F", "G"), year_1_type1 = c(1,5,3,8,7,9,4), year_2_type1 =...

View Article


Image may be NSFW.
Clik here to view.

Including % symbol in table caption of bookdown latex table

I am having trouble including the '%' symbol in the caption of a table produced by the knitr::kable function in a bookdown Rmarkdown document. For example, the following code:---title: "Test of table...

View Article


R doesn't allow me to define the number of columns I want my header to spawn

I made a R-script and build several html tables with kablExtra. I made 4 tables. I forgot to make a header for the 3th. So I tried to make a header for the third with this code:#### Set GLOBAL options...

View Article

Change row names in kable (RMarkdown)

I have produced the following table with kable package, in RMarkdown.Here's the dataframe:structure(list(...1 = c("Catalunya", "PIB", "Demanda interna1", "Demanda externa1", "Espanya", "PIB", "Demanda...

View Article

Image may be NSFW.
Clik here to view.

Change cells' values in RMarkdown PDF and linebreak

I have the following dataset:structure(list(...1 = c("Catalunya", "PIB", "Demanda interna1", "Demanda externa1", "Espanya", "PIB", "Demanda interna1", "Demanda externa1", "Zona euro", "PIB", "Demanda...

View Article


Image may be NSFW.
Clik here to view.

Background color specific rows in RMarkdown table

I have the following dataset:structure(list(...1 = c("Catalunya", "PIB", "Demanda interna1", "Demanda externa1", "Espanya", "PIB", "Demanda interna1", "Demanda externa1", "Zona euro", "PIB", "Demanda...

View Article

Image may be NSFW.
Clik here to view.

How to add horizontal lines in kable and the bottom line being thicker and...

I have the following dataset:structure(list(...1 = c("Catalunya", "PIB", "Demanda interna1", "Demanda externa1", "Espanya", "PIB", "Demanda interna1", "Demanda externa1", "Zona euro", "PIB", "Demanda...

View Article

Image may be NSFW.
Clik here to view.

How to make individual cells bold in kable table R markdown?

Here is a table I have created. I just want to make it stand out a little bit.I have figured out how to make rows different colours. I know how to make an entire row or column bold (column_spec(5:7,...

View Article


Image may be NSFW.
Clik here to view.

Break line and bold caption in Kable

How can I break the caption of my PDF table generated with Kable and turn into bold the upper part?This is the table I generated:And I need the title to be: bold{Producte interior brut} \breaklinehere...

View Article


I get misplaced error when I knit a table to PDF

This is my dataset:structure(list(grp = c("Catalunya", "Catalunya", "Catalunya", "Catalunya", "Catalunya", "Catalunya", "Catalunya", "Espanya", "Espanya", "Espanya", "Espanya", "Espanya", "Espanya",...

View Article

How to keep add_header_above (in kableExtra) fixed when scrolling

I'm creating a table using kableExtra (HTML), and I've grouped columns using add_header_above(). I want the header row to stay fixed and visible when scrolling through a long table, so I've used...

View Article

Image may be NSFW.
Clik here to view.

R - kableExtra - simple LaTeX table in PDF document with no column header &...

I am attempting to re-create a LibreOffice Writer table in R using the kableExtra package in a rmarkdown-generated PDF document using a LaTeX table.The desired table looks like this:The R code that is...

View Article

Image may be NSFW.
Clik here to view.

How to print single asterisk in R Markdown table using 'kable'?

I created a table in an R Markdown document which I want to print in html format using kable and kable_styling from the kableExtra package. One column contains cells that should only show one single...

View Article


How do I remove unwanted white line artifacts from Kbl table?

When I have a black background for cells using kbl I get unwanted white artifacts between the gridlines and the cells (Photo 1). There are also artifacts with gray and white backgrounds(photo 2).This...

View Article

Old Kable format from 2022 How Do I Update?

I have the format set up for KableExtra from early 2023 but tried to run it today and it does not work. It is the Kable_Styling that is having problems'''{r}home_hitw %>% kable() %>%...

View Article


kableExtra::kable_classic_2 not working with Quarto

I am having to rapidly convert some RMarkdown documents into Quarto (using RStudio).The documents worked fine in RMarkdown.However, the tables are crashing...below is one of the table code chunks - it...

View Article

Table editing in R Markdown with xtable

I would like to ask support in handling a table in R Markdown. Let me specify that this document will be then knitted to pdf through the engine pdflatex.Here my...

View Article


How to save html output in Rmarkdown

This is the first time I am using rmarkdown to knit a document into an html output. I see the output as an html document, no problem. However the output is linked to my personal working directory...

View Article

How to turn multiple t.test results into a publishable table?

I have these lines of code to perform a t-test in R:t_test_1 <- t.test(w$bks, b$bks, var.equal = TRUE, conf.level = 0.95)t_test_2 <- t.test(w$t, b$t, var.equal = TRUE, conf.level = 0.95)Once I...

View Article

Image may be NSFW.
Clik here to view.

Gtsummary: Footnote markers/numbers on header disappear when using...

When knitting rmarkdown PDF using as_kable_extra() and {gtsummary}, the footnote markers tend to disappear from the header row, any way to retain them on the tables?Example...

View Article
Browsing all 106 articles
Browse latest View live