Multicolumn Footnote with kableExtra on Quarto document
I have a table generated with kableExtra with a footnote that spans over several columns. If I run it separately in R it displays properly. However, when run inside a Quarto document, it constraints...
View ArticleFormat Text Within color_bar {formattable}
I am formatting a table using formattable:color_bar and would like to add a comma as a thousands separator as well as adjust the colour of the font. For cells where I don't use color_bar I see how I...
View ArticleRemoving large blank space from output within .Rmd file while using kable()...
I am using RStudio to create a pdf using RMarkdown.Whenever I use knitr::kable() to display a dataframe, it generates the appropriate dataframe in the output below the code chunk, but also incorporates...
View ArticleCollpase_rows middle alignment not working properly
I'm trying to generate a nice table using Rmarkdown to export in pdf, to do so I'm using kable and its formatting options and the function collpase_rows to merge some cells.Here it's the problem, I'm...
View ArticleWas there a `datasummary::modelsummary` update that made it glitchy with...
I am using the following code to create a latex table using modelsummary and kableExtra. The code used to work but it seems that either modelsummary or kableExtra made some changes that made it harder...
View ArticleHow to vertically align two cells of a row containing image and text in...
I am using a table to layout a header with one cell containing an image and another one containing a text, but I can't vertically align them properly.Here is my code snippet:---output:...
View ArticleHow 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 ArticleR Markdown - is there a way to use the legend/caption formatting from kable()...
I'm using the formating kable_paper("hover") for a table that I found here:https://cran.r-project.org/web/packages/kableExtra/vignettes/awesome_table_in_html.htmlThe caption for that table has a...
View ArticlekableExtra not recognizing qwrap2 styling
I recently updated my R and Rstudio, and now kable doesn't seem to recognizing styling from qwraps2. Here's a reproducible example with the output I get in Viewer.options(qwraps2_markup =...
View ArticleAdding a LaTeX reference label to a table in modelsummary
I'm trying to produce tables in R (not RMarkdown, as this question helps answer) with modelsummary and I'm having a tough time adding reference labels (e.g., tab:hello). As Vincent points out in this...
View ArticlekableExtra not recognizing table styling from qwraps2::summary_statistics
I recently updated my R and Rstudio, and now kbl() doesn't seem to recognizing styling from qwraps2::summary_statistics, where the section header from qwraps2::summary_statistic is being recognized as...
View ArticleKableExtra adding linebreaks in columns with long nonwhitespace strings
I have a long string which I want in a table, for instance 100x the letter A (AAA...). I would like kable to split this string into multiple lines if they don't fit in the table instead of making these...
View ArticleScale kable table to fit page width
How do you format a table in pdf using kable function? Because my output table width exceeds the width of the pdf. Here is an example:---output: pdf_document---```{r}df <- cbind(mtcars[1:5,],...
View ArticleConditional Formatting of multiple columns with kableExtra
I want to typeset NA values in my table in italic using kableExtra. It is easy enough to do so with one column:library(dplyr)library(kableExtra)## Randomly assign NAsd <- mtcars[1:5, ]rownames(d)...
View ArticleCiting within an RMarkdown table
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...
View ArticleHow to merge column names with data frame (or kable) in R?
Newbie in R here.In Excel, if you click and drag to select multiple cells, you can click on "merge cells" to convert multiple cells into one. Similar mindset, I want to do this in R.Take this dataframe...
View ArticleProblem with "arg;" when creating a matrix inside of a data.frame() cell
I'm quite new to R. I've been learning R Studio and been working on R Markdown in HTML format. So I apologize in advance if my code seems chaotic....Variable_List <- data.frame(..."Method" =...
View Articlehow to insert citation in a footnote of table generated with kable?
I was trying to add citation in a footnote (or even in any text in the table) but it's not working, the citation text appears as it is. I thought I need to change the format table to markdown instead...
View Articleplot a list of tables vertically kable::extra and kable in R?
I need to plot a list of tables one below the other, displayed vertically. Any ideas?The issue started here, then I've seen that knitr::kable and kableExtra may be helpful, butI can't work my way...
View ArticleAdding a table next to a diverging stacked chart
I would like to know if there is any way to generate an annotation next to the diverging stacked bar chart I have attached. this chartSpecifically, I want to show a table to the right. The table will...
View Articlesave_kable erasing Latex symbols in header
am attempting to save a kable html table with Latex symbols in the column names. This prints well in the Rmd, but when piped into save_kable() I lose the Latex formatting and get only raw text.I am...
View ArticleHow to create tables in R with my specific pattern?
I am trying to save time getting a table as in the example below but in R without myself coping and pasting from R into word:My specific type of data I have that I want to transform into something...
View ArticleFormat table columns as percent, currency for pdf output (Rmarkdown)
I have a Rmarkdown document in which I need to produce a table. The table has several columns, some of which are currency and some others are percentages. I need to produce a pdf output.Sample dataThis...
View ArticleProblems rendering table using r Markdown, kable and kableExtra
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 <-...
View ArticlePrinting 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 ArticleTables for PDF output in Quarto
I'm creating 8 different PDF reports for 8 different programs for some of the variables pictured below. I've already figured out how to use parameterized reporting in Quarto to output different PDF...
View ArticlePlace a table of knitr at the top of the next page of pdf while using...
I want to place a table using table1() function with knitr()and because the table has long rows, I am using longtable=T within kable(). Because I'm using longtable=T, the table starts right after the...
View ArticleProblem with formatting table with LaTex format
I have a table with squirrel sightings, where I have species, year, total abundance and mean_abundance, like below:library(tibble)set.seed(42) abundance_sum <- tibble( Species = sample(c("Sciurus...
View ArticleKnitr 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 ArticleMisalignment 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