Quantcast
Channel: Active questions tagged kable - Stack Overflow
Browsing latest articles
Browse All 131 View Live
↧

Printing multiples table and plots side by side with multicol in PDF Knit loop

I’m working on an R Markdown project and I’m having trouble getting my plots to show up where I want them in the document.I need to create a loop that prints 3 tables (using kableExtra) and 3 plots...

View Article


Knitr not printining the plots in a loop

I'm using Knitr to generate a PDF report, where each page is dynamically created in a loop, displaying plots and tables side by side. The approach works well for tables, but the plots fail to appear in...

View Article


Image may be NSFW.
Clik here to view.

Misalignment in Multicol enviroment (Knitr)

I'm using Knitr to generate a PDF report where each page is structured using the multicol environment. The layout consists of two columns:The first column contains a table.The second column contains a...

View Article

Image may be NSFW.
Clik here to view.

kableExtra html table: pack_rows() ignores  

I am rendering an html document in Quarto (engine: knitr). I have added some trailing whitespaces in a kableExtra table using " ". However, as soon as I add pack_rows() to the mix,...

View Article

Why is MathJax not rendered within my kableExtra table in a Quarto document?

I'm trying to generate properly a table with variable and associated p-value with kable package in a quarto document.I use kable and kableExtra packages.My yaml header is the following one:---title:...

View Article


Image may be NSFW.
Clik here to view.

Extract summary of regression model in latex

Is there a way to extract the summary of a regression model in a nice latex format like the correlation table I attach below?# install.packages("dplyr")#...

View Article

Image may be NSFW.
Clik here to view.

rmarkdown using kable with list of data.tables loses table formatting

I have a rmarkdown document where I want to use a list of data.tables and include them in a PDF/HTML/MS Word document. Each component of the list contains one data.table.What I'm trying to achieve is...

View Article

Image may be NSFW.
Clik here to view.

Why is the footer width limited by the width of the first column in...

I am rendering a kable in Quarto, but the footnote seems to follow the width of the first column, which leads to two issues:The first column becomes unnecessarily wide, andThe footnote gets broken into...

View Article


Image may be NSFW.
Clik here to view.

Space after every five rows in kable output (with booktabs option) in R...

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 to...

View Article


Using latex itemize within R kable

I'm trying to create bulleted lists within the cells of a pdf table using RMarkdown. It seems like this should work:---title: "Untitled"output: pdf_document---```{r}tibble::tibble( x =...

View Article

How to convert nlme summary object into table

I have the following datasetdf3 = structure(list(A = c("51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51", "51",...

View Article

Is there a way to customise the knitr::kable() output for Jira style tables?

I am trying to create a table output formatting that matches the style of Jira tables. Jira uses pipes like in the knitr::kable(format = "pipe") output but differs with regards to the column headers....

View Article

Producing table for .docx output with superscripts in footnote rmarkdown

I like using flextable for tables when knitting to Microsoft Word. Now I want to put superscripts in the footnotes of a table. For PDF outputs I use kableExtra and put the relevant text for the foot...

View Article


How do I label "Averages" row without wrecking my kable()?

I've got a table I'm fairly happy with. I've added a row of column averages, and I'd like add the word "Averages" to the left of it. I've tried adding a column (labeled "") but to no avail. Here's what...

View Article

How to print headers on every page when printing a long table using gt

Trying to print a long table that span multiple pages using gt, however, the tab_options(latex.use_longtable = TRUE, page.header.use_tbl_headings = TRUE) function in gt is being ignored and it does not...

View Article


Image may be NSFW.
Clik here to view.

How to create links in rmarkdown kable when the column is collapse

I created a data.frame that I would like to show as a table:df <- data.frame(A=c("a","b"), B=c("[link](http://stackoverflow.com)","[link](http://stackoverflow.com)"))Now I would like to display it...

View Article

Is it possible to make a huxtable html output hoverable?

I am trying to mimic hoverablity effect like tables produced with kableExtra which creates a very appealing effect and was wondering if anyone has an idea how this may be doable with huxtable.Here's an...

View Article


Is it possible to fix the head for a long html huxtable?

I am trying to have sticky headers like tables produced with kableExtrawhich is useful when inspecting long tables and was wondering if anyone has an idea how this may be doable with huxtable.Here's an...

View Article

How to force the display of cell contents on a single line when converting to...

I want the contents of my cells to be displayed in a single line. I'm using Rmarkdown to HTML.But no matter which package I use (Kable, Flextable, Huxtable), the column width specification is ignored...

View Article

Rmarkdown : can we merge two cells with kableExtra?

Is there a way to merge two cells with kableExtra when knitting from Rmarkdown to HTML?bbb = 5aaa = data.frame(matrix(c(1,2,3,4, paste(bbb),""), nrow = 2, byrow = T))aaaI want the value bbb (the value...

View Article

How to remove automatic table labels when using kable and bookdown for HTML

I am creating a bookdown project which includes kable tables. The final output is HTML. However, I do not want the automatic "Table 1:" labels and instead want only my custom caption I create in my...

View Article


How to format number of digits with kable

I want to format x and y using 3 digits: e.g. for x I want to obtain 0.035, 0.790, 0.453.I tried using the following, without success:---title: "format 3 digits"output: word_document: default---```{r...

View Article


Image may be NSFW.
Clik here to view.

How to create a print table with different types of data in it?

Here is my problemI have this sample data.frame:Name=c("a","b","c","d")Value=c(12.3,10.5,2.6,1.2)Label=c("label1","label2","label3","label4")df=data.frame(Name,Value,Label)I want to create a table only...

View Article

Remove column name row in kable while using kable_styling

I'm trying to make a table without row names using kable, and I'm having an issue suppressing the line where column names go, but only if I'm using kable_styling (which I'm using to left-align the...

View Article

lost label inside the data when using Kable and for loop function

test1 <- structure(list(weight = c(0.2158, 0.799, 0.611, 0.4969, 0.3469, 1.0107, 0.6946, 0.9415, 1.4008, 0.6192), Q2_1 = structure(c(4, 4, 2, 2, 3, 3, 3, 2, 3, 2), label = "How worried, if at all,...

View Article


Image may be NSFW.
Clik here to view.

How do I get ride of the gap in table footnote generated by kable in r markdown?

As you can see from the pic below. There is a gap between the note and the context. The code I used is below. Any ideas to get rid of the gap?kable(summarize(df.sum, group = "Experiment", test = T,...

View Article

Image may be NSFW.
Clik here to view.

Changing Background color of header and put stripped gray scale to rows kable

is there any way to change the header column and put the rows in grays (stripped style) by extending the following code?library(ReporteRs)x = structure(c(34L, 6L, 9L, 35L), .Dim = c(2L, 2L), .Dimnames...

View Article

Image may be NSFW.
Clik here to view.

How to create a blocked hanging indent report format in R (preferably using gt)

I want to report data in R using the display format like an MS Access block grouped report, that is, where the data that is duplicated on the subsequent lines of a group is...

View Article

How to print formatted (kable) tables from a list of dataframes?

I have a list composed of dataframes, and I want to print each list element as a knitr table on my Rmarkdown file. However, I need to format the cells on each dataframe before passing them to...

View Article



Image may be NSFW.
Clik here to view.

How to compare values across two dataframes

I am building a crime report in R and am comparing two separate dataframes, one from the current year and one from the previous year. The data structure is the same in both. Is there a way to color the...

View Article
Browsing latest articles
Browse All 131 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>