Quantcast
Channel: Active questions tagged kable - Stack Overflow
Browsing all 105 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

RMarkdown Formattable Styling From kableExtra renders html code - not...

When using kableExtra's cell_spec function, I cannot get the rmd document to format the target cell correctly. I can see the html format being applied, but it is rendering the html code itself, not the...

View Article


Rendering a `read_csv()` with markdown hyperlinks and linebreaks into a...

I have a long and complicated table containing dates and topics of my course schedule page within a quarto website.I decided to move it into a spreadsheet for flexibly manipulating individual cells. I...

View Article


Image may be NSFW.
Clik here to view.

Adding an additional column header row in middle of kable?

I am trying to add an additional header row in a long kable. Below is an example of what my current table looks like:Here is an example of what I am trying to achieve:I have not been able to find any...

View Article

KableExtra: How can I highlight cells that have changed? (latex)

I have a data frame with around 8 columns and 35-40 rows. Does anyone know if I can highlight cells that have changed from one column to the next?In the example below, I would like the b in the third...

View Article

How do I manually highlight cells by position (not by value) using kableExtra?

Note: I posted a similar question about this earlier Text, but asking for a different solution. I am still interested in that solution, but I am not sure it is possible.My question:I have a data frame...

View Article


`caption =` argument not working in kable() R

I'm having trouble exporting a kable table with LaTex using save_kable() function after I add the caption = argument in kable() function.I thought it was because I recently updated my R version,...

View Article

Error compiling kableExtra Table to PDF with knitr in RMarkdown

At the suggestion of another user, I created some sharable data to reproduce this issue. Please note that it only occurs when compiling a PDF from RMarkdown.```---title: "Test_data"output:...

View Article

Image may be NSFW.
Clik here to view.

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 Article


R Kable Table coloring rows using a vector of colors

I would like to format my rows using a vector of colors, however when I provide it the colors it only uses the first color in the vector. How can I apply each color of the vector to the corresponding...

View Article


Image may be NSFW.
Clik here to view.

How to knit rmd file to create an table with Chi-Squared and p symbols?

How to use math symbols of Chi-Squared and P in kable() function in Rmd file?Following try did not work.colnames(df) <- c("$\chi^2$ ", "$p$")table_df2 %>% kable("latex", booktabs = T, escape =...

View Article

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

This works for tables produced with kableExtra which is useful when inspecting long tables. I was wondering if anyone has an idea how this may be doable with huxtable.Here's an example Rmd to get an...

View Article

Quarto sub-tables over multiple pages

I would love to combine multiple sub-tables over two pages (i.e, either to break the table completely and have the subtable on its own page or have a "continued" for one).This MWE demonstrates the...

View Article

Adding footnotes to table with superscripting numbers in row names - rmd

As I use pack_rows(), str_replace(df, "S2", "$^{2}$") isn't working in asis_output(). Could you please provide an answer for fixing this.I add the reproducible code below,df <-...

View Article


Formatting certain rows in a table with kable and row_spec in rMarkdown not...

I want to create a summary statistics table for my panel data with rMarkdown. I used sumtable()/st() from the package vtable in order to generate summary statistics by group (industries). The output is...

View Article

Error using as_image() when trying to save a table in R [closed]

I am trying to save a table as an image to later use it in Word but when I use as_image to save it, I get an error.This is my code:kbl(table, "latex", booktabs = T) %>% kable_styling(latex_options =...

View Article


Contingency tables ("table" or "xtabs") and kableExtra

This question regards contingency tables in R as implemented with "table" or "xtab" and kableExtra (or with regard to any markdown/quarto output).A minimal example is the following (which was created...

View Article

Image may be NSFW.
Clik here to view.

Formatting kable cells with individual colors in RMarkdown and Quarto

I have a table with numeric data and want to assign individual colors, depending on a certain condition, e.g. negative cells in red and positive in blue.This works well with...

View Article


Overlap visualizations with spec_pointrange/kableExtra in one column

In this example (adapted from the kableExtra website), I want to add a column to a table to plot the coefficients and confidence intervarls of two estimations per row (let's say to compare men and...

View Article

Image may be NSFW.
Clik here to view.

R markdown bookdown table caption issue

---title: "Untitled"author: "test"date: "2024-03-05"output: bookdown::html_document2---```{r setup, include=FALSE}knitr::opts_chunk$set(echo = TRUE)```this is the reference to Table...

View Article

Image may be NSFW.
Clik here to view.

Losing math type when using kableExtra styling

I would like to use kable() and some of the functions in the kableExtra package to display a table that includes different math type (table of laboratory values with different metrics) in a pdf report....

View Article
Browsing all 105 articles
Browse latest View live


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