kableextra 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

3

Using the example data below, my goal is to create a table (publication-ready would be great, but fine if not) where I calculate what percent of each group within each column (city, race, and gende...
Despoliation asked 6/3 at 21:0

1

Solved

After updating to R 4.3.0 (on macOS 13.3.1) I get an error message, when compiling a markdown document: Error: package or namespace load failed for 'kableExtra': .onLoad failed in loadNamespace() ...
Marcellmarcella asked 27/4, 2023 at 8:13

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

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

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

4

I'm new here, but I've spend few hours on R. I am using a combination of the R package Drake with knitr. However I have an error with the Rmarkdown file. I have a similar structure to the drake exa...
Natural asked 25/8, 2020 at 13:58

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

1

I use a dark RStudio theme and try to print a knitrExtra table in R Markdown document. Unfortunately, the main contents of the table are invisible (i.e., white symbols on white background). Questi...
Threshold asked 11/11, 2018 at 10:36

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

Solved

I have simple RMarkdown document exporting in pdf containing a kablextra table with only 2 columns (see image). I'm trying to set the background of both columns to a shade of blue where high values...
Aliphatic asked 9/1, 2022 at 8:38

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

2

Solved

I'm trying to generate a neat table using the kableExtra / gt packages (or anything that works), with a goal of having my value columns grouped by the different Variables: data <- data.frame(Nam...
Septuor asked 9/1, 2021 at 11:33

1

Solved

I have created a latex table as below using kable in Rmarkdown: --- output: pdf_document header-includes: - \usepackage{xcolor} --- ```{r, message=FALSE, warning=FALSE, echo=FALSE} library(kable...
Ossetic asked 9/11, 2020 at 8:19

3

Solved

I am trying to create a latex formatted table in R with a \label{} option. Something similar to library(tidyverse) library(knitr) library(kableExtra) data_frame(a = 1:3, b = 2:4) %>% kable...
Ecclesiology asked 7/1, 2019 at 22:32

2

Solved

My data frame has ugly column names, but when displaying the table in my report, I want to their "real" names including special characters '(', new lines, greek letters, repeated names, etc. Is th...
Countrified asked 19/7, 2018 at 22:21

1

I have a ggplot2 element and a KableExtra table. Is it possible to combine them into one object with patchwork, cowplot or any other package and print it in an rmarkdown document? If there's not a ...
Meredi asked 20/7, 2020 at 6:19

© 2022 - 2024 — McMap. All rights reserved.