kableExtra 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 ArticleKable Ignoring Ordered Factor [closed]
I have created an ordered factor within a dataframe, as shown below:med_ttest_tbl2$injury_prepost <- factor(med_ttest_tbl2$injury_prepost, levels=desired_order)Wheredesired_order <-...
View ArticleHow to remove the name of first column of a table with collapse rows with...
I'm doing a table with a combination of collapsed and packed rows. I want to remove the name the firstof the column, but when I do so kable removes the collapsing.Any ideas?Here an reproducible example...
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 Article