kable Questions

2

Solved

I am attempting to create a table which has citations built into the table. Here is a visual of what I am trying to achieve. As far as I know you can only add footnotes in rowvars or colvars in ...
Cerda asked 31/7, 2018 at 12:13

1

Is there a way to export or knit a table directly to word-format in an R-script (instead of R-markdown)? knitr and kableExtra seem to provide a wide range of options to save tables, yet there is no...
Investigator asked 24/9, 2020 at 14:40

3

I am trying to create a table using kable/kableextra without showing the horizontal lines in the table except for the first row which is the row names. ``` {r echo=FALSE} library(knitr) library(ka...
Punchdrunk asked 20/3, 2018 at 16:36

3

Solved

I am attempting to output a latex table using r markdown, kable, and kableExtra. I needed to use conditional logic to add colors to my table with cell_spec. But with the pdf output, it shows latex ...
Maddie asked 4/12, 2018 at 5:7

2

Solved

Continue from this question. I want to modify the result's column width, but it can't be done without using the kableExtra. If I load the kableExtra package, the image will become text format. Her...
Zitazitah asked 24/2, 2020 at 8:11

2

Solved

I want to create a table in a pdf-document using rmarkdwon and kable. In the header there has to be a linebreak, so to do so i need to set escape = F. The table itself contains percent-values as ...
Banshee asked 27/8, 2018 at 10:11

5

Solved

Is there a way to increase the line spacing with kableExtra for a pdf output in r-markdown or bookdown? library(knitr) library(kableExtra) kable( head(iris, 5), caption = 'Iris Table', booktabs ...
Codeclination asked 15/12, 2018 at 14:29

2

Solved

I use R markdown in combination with LaTeX to create PDF reports. To generate tables I use the kableExtra package. I'd like to change the styling of rows based on the values in a particular column....
Abscess asked 16/11, 2018 at 15:45

4

I am performing a simple task: creating a table and outputting it using R Markdown to pdf as follows: library(knitr) kable(datatable,align='ccccccc', col.names = c("Copy","Sigma Est","Sigma Lower"...
Favored asked 28/12, 2016 at 15:55

3

Solved

I'm working on a shiny-app that produces and sends a pdf-report, containing the wrangled data. The problem is that I can't get the table layout to look as the client want it to look. The client wa...
Blanca asked 20/12, 2018 at 12:7

1

Is it possible to left-align the table caption? I am annoyed by the APA6th rules but I have to left-align the table caption somehow. Take for example this table: library(knitr) library(kableExtr...
Cranberry asked 6/5, 2018 at 14:23

3

Solved

I am authoring a report using RMarkdown, and using kable and kableExtra to format and print the table. Here is what I want would look like the table to look like (made in Word): I am struggling ...
Story asked 7/3, 2018 at 3:36

2

Solved

Suppose the next example: library(knitr) library(kableExtra) df <- data.frame(a = letters[1:10], b = 1:10) names(df) <- c("This is a looooooong title, I don't know how to handle this... Al...
Conation asked 1/2, 2018 at 12:6

3

I'm trying to do something quite simple: generate reports in PDF format. Finally found a way that reproduces my issue. I need to use rmarkdown::render to create reports based on data in GlobalEnv. ...
Mackay asked 15/6, 2019 at 0:0

2

Solved

I have the dataframe below and I create a kable out of this. How could I add commas between numbers every 3 digits? Descs<-structure(list(Mean = c(NaN, 943330388, NaN, NaN, NaN, 543234645, 4583...
Expatriate asked 21/3, 2022 at 16:20

1

I recently updated to R 3.5.0 and RStudio 1.1.453 and now my kable function is not working properly. When I copy and paste the code and output, you see this: library(knitr) fakedata<-data.fra...
Mertiemerton asked 18/6, 2018 at 23:51

3

When using rmarkdown to render pdf document, we can use three options for printing data.frame: default, kable and tibble (see here) With the default option, it is possible to limit the number of r...
Permissible asked 8/8, 2018 at 23:19

3

Solved

I am using knitr::kable() to render tables as part of an R Markdown document (that itself is part of a bookdown project). In particular, the booktabs option (through setting the booktabs argument t...
Nasho asked 27/2, 2018 at 18:29

3

Solved

I have the following issue, once knitting the Rmarkdown in Rstudio to PDF, my tables appear not in the position where they are in Rmarkdown file, but on the top of the page. I tried to add: header...
Overtly asked 5/11, 2018 at 11:30

2

I'm wondering if there is a way I can force a footnote to fit the width of a table (and wrap to a second line) using kable in R (I'm knitting .Rmd to PDF so the format is latex). I've used both add...
Ballplayer asked 11/4, 2018 at 16:8

2

Solved

Let's consider very simple kable table for reproducible example: df <- data.frame("X_1" = c(1, 2), "X_2" =c(3,4)) df <- kable(df, format = 'latex') df \begin{tabular}{r|r...
Lussi asked 17/3, 2021 at 15:34

2

Solved

I need to change the background colour of the headers of a table printed with knitr::kable. I can use kableExtra::column_spec to change the background of a whole column, but it doesn't affect the h...
Frondescence asked 7/11, 2018 at 10:52

2

Solved

I just started using kableExtra library to make my tables look better in the PDF output. But when I use kable() function in R Notebook file, it does not show the output. Instead I see a large white...
Kevel asked 11/4, 2018 at 12:30

5

I am creating tables that will be rendered using Rmarkdown to HTML. I am using kable and have been experimenting with kableExtra to add features to my tables. I am not able to get the width option ...
Scanlan asked 31/7, 2018 at 12:49

2

Solved

I am trying to make kable table reactive and export it in shiny app. already gave a try with renderDataTable/renderTable inside server and output functions as datatableOutput/tableOutput, but of no...
Speedway asked 21/7, 2018 at 23:52

© 2022 - 2025 — McMap. All rights reserved.