Questions tagged [kable]

Create Tables In LaTeX, HTML, Markdown And ReStructuredText

A function from R knitr package by Yihui Xie.

This is a very simple table generator. It is simple by design. It is not intended to replace any other R packages for making tables.

Related tags:

795 questions
0
votes
0 answers

How can I print a less/greater than symbol in Rmarkdown LaTex through kable and kableExtra?

I am trying to print a fairly simple table using Rmarkdown LaTex through kable and the kableExtra functions that allow me to bold the rows and columns. Below is an example of my issue: df <- data_frame(grp=c("<1","1-5","5+"),n=c(3,4,5)) #This…
c.custer
  • 407
  • 5
  • 13
0
votes
1 answer

Conditionally formatting cells in one column by comparing it with the value from another column using Kable

I am new to R and we know in Excel it is very easy to conditionally format a cell (change the background colour) by comparing with another column. I tried to do this in R using KableExtra. But I could not succeed in fetching value from another row…
doctshind s
  • 380
  • 3
  • 13
0
votes
0 answers

Adding header rows to group columns in R

I am trying to group headers using r. Here is the input dataframe I am using. |usage |flavor |variable |level | mean| se| |:---------|:------|:------------|:-----|---------:|---------:| |Every Day |Yes |a |NA …
SNT
  • 1,283
  • 3
  • 32
  • 78
0
votes
1 answer

Can kable read latex commands?

I have a table that contains cells with latex commands. For instance, one column header reads "\textit{Quantity}." When I call kable on the table with the following code, the latex command (i.e., "\textit{Quantity}") appears in my…
Namenlos
  • 475
  • 5
  • 17
0
votes
0 answers

xtable kable html output in console

I am trying to produce some tables using xtable and kable. However, the output that comes out in the console shows the html code instead of the formatted html table, such as