Was 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 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 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 ArticlekableExtra 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 ArticleWhy 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 ArticleExtract 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 Articlermarkdown 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 ArticleWhy 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 ArticleSpace 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 ArticleUsing 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 ArticleHow 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 ArticleIs 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 ArticleProducing 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 ArticleHow 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 ArticleHow 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