Quantcast
Channel: Active questions tagged kable - Stack Overflow
Browsing index pages (134 articles)

How can I get a table to print under a picture using a loop in a .rmd with...

I am trying to create a .rmd file that takes all of the pictures for a field day and the notes that was taken and create a report. I am able to get the pictures to plot but the no matter what I try the...

View Article


Table Cross-References in Bookdown with MS-Word Output?

How can I make table cross-references work in a Bookdown document with all of the output formats PDF, .docx, and HTML? Or maybe more specifically, how can I get table cross-references working for...

View Article


r-markdown - dynamic mutli-line header with second line the same

I am trying to create a multi-line header in r-markdown but I am having trouble with:making it dynamicallowing the second line of the header be the same.For example, in the below data set, you can see...

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

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

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


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


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

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

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

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


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


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

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


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

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

RMarkdown: tables and graphs run, but does not knit to pdf [closed]

I have a project using RMarkdown and it has to knit to a pdf at the end. I was able to do tables and graphs, but when I knit to a pdf I get the error: processing file: dataproject.RmdError in...

View Article
Browsing index pages (134 articles)


Latest Images